anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An open 1.2B base language model from osunlp, a looped transformer with attention residuals, released with checkpoints from a 500B-token training run. For text completion and further training.
ARLoop-1.2B is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download osunlp/ARLoop-1.2B
ARLoop-1.2B is an open base language model from osunlp, a looped transformer with attention residuals. It reuses its layers: 24 physical layers run in 3 recurrent passes, which gives an effective depth of 72. This release holds the checkpoints of a 500B-token training run, and the card calls it a base model for text completion.
Researchers and developers who want an open base model to study looped transformers, or a starting point for their own mid-training and post-training.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Academia | ML researchers | Study looped transformers with attention residuals | A comparison of an early and a late checkpoint |
| Software | Developers | Tune a small base model for their own task | A custom text completer |
| Education | Students | Watch how a pretrained model changes during training | Loading saved steps one by one |
| Labs | Research teams | Reuse open checkpoints as a baseline | A baseline for a new architecture |
If you want a chat assistant, you can skip it, since the card describes a base model meant for text completion.
| Use case | Who | What they get back |
|---|---|---|
| Text completion | Developers | A continuation of the text you give it |
| Mid-training | Researchers | A base model to keep training on new data |
| Post-training | ML engineers | A base model to tune for a task |
| Checkpoint study | Researchers | Any saved training step, loaded by its revision name |
pip install -U huggingface_hub hf download osunlp/ARLoop-1.2B
Load the model and tokenizer with trust_remote_code set to true, move the model to cuda and give it the start of a text. The card says weights load in BF16 for inference, while the stored checkpoint keeps the original FP32 weights.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "osunlp/ARLoop-1.2B" # Or the local ARLOOP_hf directory.
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id, trust_remote_code=True, dtype=torch.bfloat16,
).to("cuda").eval()
inputs = tokenizer("The capital of France is", return_tensors="pt").to("cuda")
with torch.inference_mode():
output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))You give the model the text "The capital of France is" and ask for up to 64 new tokens with sampling off. It continues the text, since it completes text and does not chat.
Start with the exact example on the card and a short prompt. Expect it to continue your text rather than answer like a chat model. The example sets trust_remote_code, which lets the repository's own code run, so read that code first.
The model has a hidden width of 2048, an MLP width of 5632, 16 attention heads, 4 key-value heads and a context length of 4096. It uses the SmolLM2 tokenizer with a 49152-token vocabulary, and its output head is tied to the token embeddings. Each saved training step loads on its own by revision name, for example step-010000. Pass that name to the model and to the tokenizer alike.
An open 1.2B base language model from osunlp, a looped transformer with attention residuals, released with checkpoints from a 500B-token training run. For text completion and further training.
Made by osunlp on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: ARLoop-1.2B is an open base language model from osunlp, a looped transformer with attention residuals. It reuses its layers: 24 physical layers run in 3 recurrent passes, which gives an effective depth of 72. This release holds the checkpoints of a 500B-token training run, and the card calls it a base model for text completion.
Who it suits: Researchers and developers who want an open base model to study looped transformers, or a starting point for their own mid-training and post-training.
Industry | Who uses it | How they use it | Example
Academia | ML researchers | Study looped transformers with attention residuals | A comparison of an early and a late checkpoint
Software | Developers | Tune a small base model for their own task | A custom text completer
Education | Students | Watch how a pretrained model changes during training | Loading saved steps one by one
Labs | Research teams | Reuse open checkpoints as a baseline | A baseline for a new architecture
If you want a chat assistant, you can skip it, since the card describes a base model meant for text completion.
Where to use it:
Use case | Who | What they get back
Text completion | Developers | A continuation of the text you give it
Mid-training | Researchers | A base model to keep training on new data
Post-training | ML engineers | A base model to tune for a task
Checkpoint study | Researchers | Any saved training step, loaded by its revision name
How to set it up:
pip install -U huggingface_hub
hf download osunlp/ARLoop-1.2B
How to use it: Load the model and tokenizer with trust_remote_code set to true, move the model to cuda and give it the start of a text. The card says weights load in BF16 for inference, while the stored checkpoint keeps the original FP32 weights.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "osunlp/ARLoop-1.2B" # Or the local ARLOOP_hf directory.
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id, trust_remote_code=True, dtype=torch.bfloat16,
).to("cuda").eval()
inputs = tokenizer("The capital of France is", return_tensors="pt").to("cuda")
with torch.inference_mode():
output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Example: You give the model the text "The capital of France is" and ask for up to 64 new tokens with sampling off. It continues the text, since it completes text and does not chat.
For newcomers and experts: Start with the exact example on the card and a short prompt. Expect it to continue your text rather than answer like a chat model. The example sets trust_remote_code, which lets the repository's own code run, so read that code first.
The model has a hidden width of 2048, an MLP width of 5632, 16 attention heads, 4 key-value heads and a context length of 4096. It uses the SmolLM2 tokenizer with a 49152-token vocabulary, and its output head is tied to the token embeddings. Each saved training step loads on its own by revision name, for example step-010000. Pass that name to the model and to the tokenizer alike.
Install transformers and PyTorch
Load the model and tokenizer
Give it the start of a text
It continues the text
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download osunlp/ARLoop-1.2B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| ARLoop-1.2B This page | 2,399 | 8 | 1.2B | apache-2.0 | |
| DeepSeek-V4-ProShares text-generation · transformers · safetensors | 322,162 | 5,702 | 1.6T | mit | |
| VLX-Seek-1.5-10BShares text-generation · transformers · safetensors | 137,772 | 39 | 10B | apache-2.0 | |
| OpenAI GPT 1Shares text-generation · transformers · safetensors | 45,439 | 325 | 120M | mit | |
| Sage-A1.5Shares text-generation · transformers · safetensors | 22,224 | 404 | 36B | apache-2.0 | |
| K2-Horizon-3.7BShares text-generation · transformers · safetensors | 15,489 | 115 | 5.1B | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
AbdomenAtlas · Kit
Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…