YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Lattice Quark 1.5B (MLX 4-bit)

MLX conversion of the Quark 1.5B nanochat-style language model, trained from scratch. Optimized for Apple Silicon: transformer linears quantized to 4-bit (group size 64), token and value embeddings kept in bf16.

  • Parameters: 1.5B (total, incl. value embeddings)
  • Layers: 26, hidden 1536, 12 heads, head dim 128
  • Context: 2048 tokens, RoPE base 100k
  • Vocab: 32768 (GPT-4-style BPE)
  • Model type: nanochat2 (complete architecture: value embeddings, smear, backout, residual lambdas)
  • Size: ~1.7GB

Files

  • model.safetensors โ€” weights (4-bit quantized linears + bf16 embeddings)
  • config.json โ€” model configuration (model_type: nanochat2)
  • tokenizer.json / tokenizer_config.json โ€” HuggingFace tokenizer (byte-exact with the training tokenizer, incl. chat template)
  • nanochat_tokenizer.json โ€” original tokenizer dump
  • nanochat_rope.safetensors โ€” precomputed rotary embeddings
  • generation_config.json โ€” eos = <|assistant_end|> (32763)

Usage

Requires the nanochat2 model type, available since mlx-lm PR #1761:

pip install mlx-lm
mlx_lm.generate --model lattice-research/lattice-quark-1.5b-mlx --prompt "what are you"

The chat template wraps prompts in the SFT marker format from training.

Source

Base checkpoint: lattice-research/lattice-quark-1.5b

Downloads last month
121
Safetensors
Model size
0.8B params
Tensor type
BF16
ยท
U32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support