Views
No views yet
x3 runs the network
in a short internal loop: it drafts an answer, re-reads its own answer, then
continues and adds another aspect — for n_passes rounds. The result is a longer,
more exhaustive answer than a 152M model produces in one shot.Everything happens inside the model: identical weights to v2, only the generation procedure is looped. No external orchestration.
generate.x3 widens the answer, it does not turn a 152M into a 1B.1from transformers import AutoModelForCausalLM, GPT2TokenizerFast
2import huggingface_hub as hh
3
4d = hh.snapshot_download("xxrickyxx/Ailo152m-x3")
5tok = GPT2TokenizerFast(vocab_file=f"{d}/vocab.json", merges_file=f"{d}/merges.txt")
6model = AutoModelForCausalLM.from_pretrained(d, trust_remote_code=True).eval()
7
8print(model.chat("What is a black hole?", tok, n_passes=3, tokens_per_pass=140))chat() applies the chat template and runs the loop. Knobs: n_passes (loop rounds),
tokens_per_pass, temperature (0.3), top_k (20), top_p (0.9),
repeat_penalty (1.3).code_templates/): ask for code and the model understands the request
and hands you the right full program; ask for something outside the library and it
honestly says so, listing what it has.1print(model.chat("write a python script to manage a library with a GUI", tok))
2# -> complete, working Tkinter+SQLite Library Manager (add/search/loan/return)<|user|>\n{q}\n<|assistant|>\n.num_predict + repeat penalty) — not the real loop:ollama run Alieno/ailo-152m-x3trust_remote_code) feature of this repo.