This model was produced by Scheduled Quantization-Aware Training with a linear precision reduction schedule, targeting INT4 deployment on edge devices (Android, iOS, Raspberry Pi).
Important
This model is in bfloat16 — it is NOT quantized. QAT trains weights to be robust to quantization noise, but the actual quantization happens at export time. For the quantized GGUF versions ready for deployment, see:
fromtransformersimportAutoModelForCausalLM,AutoTokenizerimporttorchmodel=AutoModelForCausalLM.from_pretrained("jpcurada/SmolLM2-1.7B-Scheduled-QAT-Linear-INT4",torch_dtype=torch.bfloat16,device_map="auto",)tokenizer=AutoTokenizer.from_pretrained("jpcurada/SmolLM2-1.7B-Scheduled-QAT-Linear-INT4")inputs=tokenizer("The future of AI is",return_tensors="pt").to(model.device)outputs=model.generate(**inputs,max_new_tokens=100)print(tokenizer.decode(outputs[0],skip_special_tokens=True))