Grace-G1
Collection
6 items • Updated
Versione instruction-tuned di BranchingNLP/Grace-G1-1B-A0.6B: il primo Mixture-of-Experts della famiglia Grace di BranchingNLP. Assistente conversazionale bilingue IT/EN, addestrato da zero.
1.00B parametri totali, 585M attivi per token (4 esperti, top-2).
<|im_start|><|system|>{system}<|im_end|>
<|im_start|><|user|>{messaggio}<|im_end|>
<|im_start|><|assistant|>
Il modello può generare <|thinking|>...<|/thinking|> prima della risposta, e chiude con <|im_end|>.
hf download BranchingNLP/Grace-G1-1B-A0.6B-Instruct --local-dir grace && cd grace
pip install torch safetensors transformers # + flash-linear-attention (fla) per la GPU
python3 chat_grace.py --model .
python3 chat_grace.py --model . --prompt "Come si calcola l'area di un cerchio?"
Su GPU usa i kernel Triton di fla se installati; altrimenti (o su CPU) il GatedDeltaNet in PyTorch puro
(gdn_torch.py). Con FlashGDN si possono usare anche i kernel
CUDA di BranchingNLP.
| parametri totali / attivi | 1000M / 585M |
| layer | 24 (3 Gated DeltaNet : 1 attenzione, schema GGGA) |
| d_model | 1024 |
| attenzione | 16 teste query, 4 KV (GQA), RoPE θ = 500000 |
| Gated DeltaNet | 12 teste, K = 64, V = 128 |
| FFN | 4 esperti SwiGLU (d_ff = 2816), router top-2 |
| vocabolario | 32768 (tokenizer bilingue IT/EN) |
È un modello di ricerca piccolo: non usarlo per informazioni che devono essere corrette senza verificarle.
Apache 2.0