Instructions to use prithivMLmods/SmolLM2-360M-Grpo-r999 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/SmolLM2-360M-Grpo-r999 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/SmolLM2-360M-Grpo-r999") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/SmolLM2-360M-Grpo-r999") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/SmolLM2-360M-Grpo-r999") 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 Settings
- vLLM
How to use prithivMLmods/SmolLM2-360M-Grpo-r999 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/SmolLM2-360M-Grpo-r999" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/SmolLM2-360M-Grpo-r999", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/SmolLM2-360M-Grpo-r999
- SGLang
How to use prithivMLmods/SmolLM2-360M-Grpo-r999 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 "prithivMLmods/SmolLM2-360M-Grpo-r999" \ --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": "prithivMLmods/SmolLM2-360M-Grpo-r999", "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 "prithivMLmods/SmolLM2-360M-Grpo-r999" \ --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": "prithivMLmods/SmolLM2-360M-Grpo-r999", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/SmolLM2-360M-Grpo-r999 with Docker Model Runner:
docker model run hf.co/prithivMLmods/SmolLM2-360M-Grpo-r999
SmolLM2-360M-Grpo-r999
SmolLM2-360M-Grpo-r999 is fine-tuned based on SmolLM2-360M-Instruct. SmolLM2 demonstrates significant advances over its predecessor, SmolLM1, particularly in instruction following, knowledge, and reasoning. The 360M model was trained on 2 trillion tokens using a diverse combination of datasets: FineWeb-Edu, DCLM, The Stack, along with new filtered datasets that we curated and will release soon. We developed the instruct version through supervised fine-tuning (SFT) using a combination of public datasets and our own curated datasets.
How to Use
Transformers
pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "prithivMLmods/SmolLM2-360M-Grpo-r999"
device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
messages = [{"role": "user", "content": "What is gravity?"}]
input_text = tokenizer.apply_chat_template(messages, tokenize=False)
print(input_text)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=50, temperature=0.2, top_p=0.9, do_sample=True)
print(tokenizer.decode(outputs[0]))
Limitations of SmolLM2-360M-Grpo-r999
Model Size: While 360M parameters provide enhanced capabilities, the model still has limitations in handling highly complex reasoning tasks or long-context dependencies compared to larger models.
Bias and Inaccuracy: Despite fine-tuning on diverse datasets, the model may generate biased, inaccurate, or factually incorrect responses, particularly for niche topics or specialized knowledge areas.
Context Length: The model might struggle with very long conversations or extended prompts, potentially leading to truncation or loss of contextual coherence.
Fine-Tuning Specificity: Performance on specialized domains may require additional fine-tuning with domain-specific datasets.
Generalization: The model may not generalize as effectively to rare queries or unseen tasks compared to larger models, sometimes providing generic or incomplete answers.
Limited Multi-Turn Conversations: While it supports multi-turn interactions, its ability to retain and use context over extended conversations is not as strong as larger models.
Intended Use of SmolLM2-360M-Grpo-r999
General-purpose Conversational AI – Ideal for chatbots, virtual assistants, and interactive applications requiring basic reasoning and knowledge retrieval.
Education & Tutoring – Supports answering educational queries, explaining concepts, and aiding learning across multiple domains.
Content Generation – Can generate short-form text, summaries, and brainstorming ideas for writing assistants or creativity tools.
Code Assistance – Fine-tuned on programming datasets, making it useful for debugging, explaining code, and assisting developers.
Instruction Following – Optimized for following structured commands, making it suitable for task-based applications.
Prototyping & Experimentation – Lightweight model for fast deployment in new AI applications, balancing performance with efficiency.
Low-Resource Environments – Runs on edge devices, mobile apps, and local servers where larger models are infeasible.
Research & Development – Can be used as a base model for further fine-tuning or model optimizations.
- Downloads last month
- 9
