Downloads · 30 days
26
14% of all-time downloads
xxrickyxx/Ailo340m-v4
Ailo340m-v4 is a text generation model from xxrickyxx. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
A 341M-parameter English chat model (32 layers, GPT-2 tokenizer) trained end-to-end on a single consumer AMD GPU (RX 6750 XT, 12 GB) with a hand-written backward engine — PyTorch autograd is unstable on this hardware…
Downloads · 30 days
26
14% of all-time downloads
All-time downloads
180
Public
Parameters
379M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors758 MB · 53%
From the Hugging Face model README
A 341M-parameter English chat model (32 layers, GPT-2 tokenizer) trained end-to-end on a single consumer AMD GPU (RX 6750 XT, 12 GB) with a hand-written backward engine — PyTorch autograd is unstable on this hardware for deep transformers.
Small enough to run on a Raspberry Pi Zero 2 W (Q4, ~220 MB) at a few tokens per second.
A four-stage pipeline, each stage adding one capability:
ollama run Alieno/ailo-340m-v4
from transformers import AutoModelForCausalLM, GPT2TokenizerFast
import torch
m = AutoModelForCausalLM.from_pretrained("xxrickyxx/Ailo340m-v4", trust_remote_code=True).eval()
tok = GPT2TokenizerFast(vocab_file="vocab.json", merges_file="merges.txt")
prompt = "<|user|>\nWhy is the sky blue?\n<|assistant|>\n"
ids = tok(prompt, return_tensors="pt").input_ids
print(tok.decode(m.generate(ids, max_new_tokens=120)[0][ids.shape[1]:], skip_special_tokens=True))
Chat format: <|user|>\n{question}\n<|assistant|>\n, ending with <|end|>.
Recommended sampling: temperature 0.3, top_k 20, top_p 0.9, repeat_penalty 1.25.
25 + 17 = 51).The gap against Qwen2.5-0.5B is not mainly architectural: that model saw on the order of 18 trillion pre-training tokens, while AILO's base comes from distillation over a corpus many orders of magnitude smaller. Supervised fine-tuning shapes behaviour; it does not substitute for pre-training scale.
Use it as a small, local conversational reader — with retrieval for facts and a calculator for arithmetic. Do not use it as a source of truth.
| Parameters | 341M (32 layers, 768 hidden, 12 heads) |
| Tokenizer | GPT-2 BPE (50257) |
| Context | 1024 |
| Teachers | GPT-J 6B (logit-KD) · Gemma 3 4B (chat SFT) |
| Trained on | 1× AMD RX 6750 XT (12 GB), DirectML, manual backward |
CC BY-NC-SA 4.0 (non-commercial). Distilled in part from GPT-J (Apache-2.0) and Gemma 3 (Gemma Terms of Use); downstream use must respect the teachers' terms. Training data includes OpenAssistant (Apache-2.0), Dolly (CC BY-SA 3.0), No-Robots (CC BY-NC 4.0), SQuAD (CC BY-SA 4.0), GSM8K (MIT) and orca-math (MIT).