fromtransformersimportAutoModelForCausalLM,AutoTokenizermodel=AutoModelForCausalLM.from_pretrained("OpenSynapseLabs/arche-codium-500m",torch_dtype="auto",device_map="auto")tokenizer=AutoTokenizer.from_pretrained("OpenSynapseLabs/arche-codium-500m")prompt='''def has_close_elements(numbers: list[float], threshold: float) -> bool:
"""Check if any two numbers are closer than threshold."""'''inputs=tokenizer(prompt,return_tensors="pt").to(model.device)outputs=model.generate(**inputs,max_new_tokens=128,temperature=0.2)print(tokenizer.decode(outputs[0],skip_special_tokens=True))
Benchmarks
Benchmark
Result
HumanEval
16/20 (80%)
What This Model Is
Lead magnet — free, capable entry point into the Arche ecosystem
Edge-friendly — runs on laptops, Raspberry Pi, mobile devices
Real code — generates executable Python, not just snippets
What This Model Is Not
A replacement for 7B+ models on complex architecture tasks
A chat model — instruction-tuned for code generation only
The final word — larger Arche coding models are shipping this month
Model Details
Property
Value
Base model
Qwen2.5-Coder-0.5B-Instruct
Parameters
0.49B
License
Apache 2.0
Training
Instruction fine-tuning on code-completion tasks
Hardware Requirements
Device
VRAM/RAM
Speed
Apple Silicon (MPS)
2 GB unified
~50 tok/s
NVIDIA GPU (CUDA)
2 GB
~80 tok/s
CPU only
4 GB RAM
~10 tok/s
Limitations
Struggles with multi-step reasoning (e.g., LRU cache with TTL)
May truncate output at max_tokens limits — increase if code cuts off