from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Natarizki/CMLM-0.8B", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("Natarizki/CMLM-0.8B")
messages = [{"role": "user", "content": "Write a Python function to check if a number is prime."}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Benchmarks
Domain
CMLM-0.8B (tok/s)
Base Qwen3.5-0.8B (tok/s)
Avg Latency (CMLM)
Coding
12.1
15.2
39.0s
Math
14.8
15.1
15.9s
General
15.0
15.1
17.0s
Note:
CMLM generates longer, more detailed responses for coding tasks (hence lower tok/s but higher quality). Math and general domains show near-parity with base model throughput. Benchmarked on NVIDIA T4 with float32 inference via Unsloth.
Limitations
Trained on 65K samples; may underperform on niche domains
2048 token context limit; not suitable for long-document tasks
float32 training preserves accuracy but increases inference memory vs. quantized variants
No vision capabilities despite Qwen3.5's native multimodal architecture
CMLM-0.8B huggingface.co is an AI model on huggingface.co that provides CMLM-0.8B's model effect (), which can be used instantly with this Natarizki CMLM-0.8B model. huggingface.co supports a free trial of the CMLM-0.8B model, and also provides paid use of the CMLM-0.8B. Support call CMLM-0.8B model through api, including Node.js, Python, http.
CMLM-0.8B huggingface.co is an online trial and call api platform, which integrates CMLM-0.8B's modeling effects, including api services, and provides a free online trial of CMLM-0.8B, you can try CMLM-0.8B online for free by clicking the link below.
Natarizki CMLM-0.8B online free url in huggingface.co:
CMLM-0.8B is an open source model from GitHub that offers a free installation service, and any user can find CMLM-0.8B on GitHub to install. At the same time, huggingface.co provides the effect of CMLM-0.8B install, users can directly use CMLM-0.8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.