Instructions to use jjzha/SmolLM2-360M-Instruct-rt-2708 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jjzha/SmolLM2-360M-Instruct-rt-2708 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jjzha/SmolLM2-360M-Instruct-rt-2708") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jjzha/SmolLM2-360M-Instruct-rt-2708") model = AutoModelForCausalLM.from_pretrained("jjzha/SmolLM2-360M-Instruct-rt-2708") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use jjzha/SmolLM2-360M-Instruct-rt-2708 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jjzha/SmolLM2-360M-Instruct-rt-2708" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jjzha/SmolLM2-360M-Instruct-rt-2708", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jjzha/SmolLM2-360M-Instruct-rt-2708
- SGLang
How to use jjzha/SmolLM2-360M-Instruct-rt-2708 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jjzha/SmolLM2-360M-Instruct-rt-2708" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jjzha/SmolLM2-360M-Instruct-rt-2708", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jjzha/SmolLM2-360M-Instruct-rt-2708" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jjzha/SmolLM2-360M-Instruct-rt-2708", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jjzha/SmolLM2-360M-Instruct-rt-2708 with Docker Model Runner:
docker model run hf.co/jjzha/SmolLM2-360M-Instruct-rt-2708
Model Details
SmolLM2-360M-Instruct-rt-2708 is a 360M parameter language model designed for English text generation tasks. This model builds upon HuggingFaceTB/SmolLM2-360M-Instruct and is further fine-tuned on the jjzha/rt-2708 dataset. It focuses on enhancing factual reasoning abilities in generated text.
Model Developers
This model was fine-tuned by independent contributors using the Hugging Face Transformers library.
Variations
This is a fine-tuned version of the HuggingFaceTB/SmolLM2-360M-Instruct model. No additional variants or intermediate checkpoints are currently provided.
Input
Text only.
Output
Text only.
Model Architecture
The model is an auto-regressive, transformer-based language model, fine-tuned with supervised learning to improve instruction-following and reasoning capabilities in English.
Model Dates
Fine-tuning was performed in February-April 2025. The base and instruct model was originally released by the Qwen team.
License
This model is released under the Apache 2.0 license.
Research Paper
Scaling Reasoning can Improve Factuality in Large Language Models
Intended Use & Limitations
Intended Use Cases
This model is intended for English language text generation tasks that require improved factual accuracy and reasoning. It is suitable for research, experimentation, and development of assistant-like chat applications.
The instruction-tuned base model follows the Qwen instruction format, and this fine-tuned version preserves that behavior.
Limitations
Despite improvements, the model may still produce factually incorrect or logically inconsistent outputs. It is not recommended for high-stakes decision-making applications without human oversight. Always verify generated content before relying on it in critical scenarios.
Hardware and Software
Training Factors
Fine-tuning was performed using the Hugging Face Transformers library and Pytorch FSDP. We used a multinode and multigpu setup with AMD MI250x GPUs.
Carbon Footprint
We only have aggregated statistics of all models fine-tuned and inferences. A cumulative of 6,500 GPU hours of computation was performed on AMD MI250x GPU modules, which has a TDP of 500 Watts. The experiments were ran from February to April 2025. During this time, the average carbon efficiency in Finland was 0.085 kg/kW h. This means we released about 276 kg of CO2 equivalent.
Training Data
Overview
Fine-tuning was performed on the jjzha/rt-2708 dataset, which focuses on enhancing reasoning and factual accuracy.
Evaluation Results
See paper for results.
Citation
@misc{zhang2025scalingreasoningimprovefactuality,
title={Scaling Reasoning can Improve Factuality in Large Language Models},
author={Mike Zhang and Johannes Bjerva and Russa Biswas},
year={2025},
eprint={2505.11140},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2505.11140},
}
- Downloads last month
- 9