Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use alaverghett/SmolLM2-360M-Instruct_logs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alaverghett/SmolLM2-360M-Instruct_logs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alaverghett/SmolLM2-360M-Instruct_logs") 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("alaverghett/SmolLM2-360M-Instruct_logs") model = AutoModelForCausalLM.from_pretrained("alaverghett/SmolLM2-360M-Instruct_logs", 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 alaverghett/SmolLM2-360M-Instruct_logs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alaverghett/SmolLM2-360M-Instruct_logs" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alaverghett/SmolLM2-360M-Instruct_logs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/alaverghett/SmolLM2-360M-Instruct_logs
- SGLang
How to use alaverghett/SmolLM2-360M-Instruct_logs 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 "alaverghett/SmolLM2-360M-Instruct_logs" \ --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": "alaverghett/SmolLM2-360M-Instruct_logs", "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 "alaverghett/SmolLM2-360M-Instruct_logs" \ --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": "alaverghett/SmolLM2-360M-Instruct_logs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use alaverghett/SmolLM2-360M-Instruct_logs with Docker Model Runner:
docker model run hf.co/alaverghett/SmolLM2-360M-Instruct_logs
Commit History
-
End of training
Verified signature724bf5c -
Model save
Verified signature4402819 -
Training in progress, step 46125
Verified signature0cb376f -
Training in progress, step 45510
Verified signature86f4777 -
Training in progress, step 44895
Verified signatured0e0414 -
Training in progress, step 44280
Verified signature5208526 -
Training in progress, step 43665
Verified signaturea3f66dd -
Training in progress, step 43050
Verified signatureba31821 -
Training in progress, step 42435
Verified signature626c3e0 -
Training in progress, step 41820
Verified signature4c8777c -
Training in progress, step 41205
Verified signaturee6188ef -
Training in progress, step 40590
Verified signature71d5069 -
Training in progress, step 39975
Verified signature681733e -
Training in progress, step 39360
Verified signature089703e -
Training in progress, step 38745
Verified signature1f45a09 -
Training in progress, step 38130
Verified signature7a2d489 -
Training in progress, step 37515
Verified signature2a6cd10 -
Training in progress, step 36900
Verified signature4eab02c -
Training in progress, step 36285
Verified signature05f9710 -
Training in progress, step 35670
Verified signatureffd1393 -
Training in progress, step 35055
Verified signature3c77910 -
Training in progress, step 34440
Verified signature5fae59a -
Training in progress, step 33825
Verified signature982bd9b -
Training in progress, step 33210
Verified signature79b8e39 -
Training in progress, step 32595
Verified signature8a464ac -
Training in progress, step 31980
Verified signature80ff46b -
Training in progress, step 31365
Verified signature3042cb2 -
Training in progress, step 30750
Verified signaturedb01997 -
Training in progress, step 30135
Verified signature53df055 -
Training in progress, step 29520
Verified signatureef20e6d -
Training in progress, step 28905
Verified signaturee1ac790 -
Training in progress, step 28290
Verified signaturea4bed00 -
Training in progress, step 27675
Verified signatureebdb6e7 -
Training in progress, step 27060
Verified signaturee9ed64d -
Training in progress, step 26445
Verified signatureb7ac52a -
Training in progress, step 25830
Verified signature6f429b6 -
Training in progress, step 25215
Verified signature800d63a -
Training in progress, step 24600
Verified signature3ad357e -
Training in progress, step 23985
Verified signature5ddb187 -
Training in progress, step 23370
Verified signature8bd5fa6 -
Training in progress, step 22755
Verified signature65da39d -
Training in progress, step 22140
Verified signaturefc12e66 -
Training in progress, step 21525
Verified signaturec40c541 -
Training in progress, step 20910
Verified signature1c38d32 -
Training in progress, step 20295
Verified signature917cf37 -
Training in progress, step 19680
Verified signatureb1f1ce5 -
Training in progress, step 19065
Verified signature5913a86 -
Training in progress, step 18450
Verified signatureb710692 -
Training in progress, step 17835
Verified signatureb00b11f -
Training in progress, step 17220
Verified signaturefc76a47