Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/SmolLM-360M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/SmolLM-360M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/SmolLM-360M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/SmolLM-360M") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/SmolLM-360M", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SystemAdmin123/SmolLM-360M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/SmolLM-360M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/SmolLM-360M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/SmolLM-360M
- SGLang
How to use SystemAdmin123/SmolLM-360M 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 "SystemAdmin123/SmolLM-360M" \ --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": "SystemAdmin123/SmolLM-360M", "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 "SystemAdmin123/SmolLM-360M" \ --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": "SystemAdmin123/SmolLM-360M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/SmolLM-360M with Docker Model Runner:
docker model run hf.co/SystemAdmin123/SmolLM-360M
Commit History
-
Training in progress, step 200, checkpoint
Verified signaturec38e28b -
Training in progress, step 180, checkpoint
Verified signature568d85d -
Training in progress, step 160, checkpoint
Verified signature8c1f2a5 -
Training in progress, step 140, checkpoint
Verified signature29f197c -
Training in progress, step 120, checkpoint
Verified signature8728b50 -
Training in progress, step 100, checkpoint
Verified signature5d9163a -
Training in progress, step 80, checkpoint
Verified signatureddecad5 -
Training in progress, step 60, checkpoint
Verified signatureeec56e6 -
Training in progress, step 40, checkpoint
Verified signature5d6e7e5 -
Training in progress, step 20, checkpoint
Verified signature6230b87 -
Training in progress, step 200, checkpoint
Verified signature6cd43c6
-
Training in progress, step 800, checkpoint
Verified signature7259c5b -
Training in progress, step 400, checkpoint
Verified signaturebe96ade -
Training in progress, step 2000, checkpoint
Verified signature72c0d58 -
Training in progress, step 1600, checkpoint
Verified signature54be46c -
Training in progress, step 1200, checkpoint
Verified signatured5d60c9 -
Training in progress, step 800, checkpoint
Verified signaturebb219e9 -
Training in progress, step 400, checkpoint
Verified signature2795b83
-
Training in progress, step 40, checkpoint
Verified signature7210ab5
-
Training in progress, step 40, checkpoint
Verified signature37e96a3