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 dumpnanochat_rope.safetensorsโ precomputed rotary embeddingsgeneration_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
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support