Instructions to use MattDy88/smollm2_desired with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MattDy88/smollm2_desired with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MattDy88/smollm2_desired")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MattDy88/smollm2_desired") model = AutoModelForCausalLM.from_pretrained("MattDy88/smollm2_desired", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MattDy88/smollm2_desired with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MattDy88/smollm2_desired" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MattDy88/smollm2_desired", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MattDy88/smollm2_desired
- SGLang
How to use MattDy88/smollm2_desired 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 "MattDy88/smollm2_desired" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MattDy88/smollm2_desired", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "MattDy88/smollm2_desired" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MattDy88/smollm2_desired", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MattDy88/smollm2_desired with Docker Model Runner:
docker model run hf.co/MattDy88/smollm2_desired
Download training_args.bin from MattDy88/smollm2_desired: direct link, hf CLI and curl.
- Browser
- Download file 5.78 kB
-
https://huggingface.co/MattDy88/smollm2_desired/resolve/main/training_args.bin
- Command line
-
hf download hf://MattDy88/smollm2_desired/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/MattDy88/smollm2_desired/resolve/main/training_args.bin
5.78 kB
- Xet hash:
- 7bb98b2642de6b7f7b34a0755aba9ea4f271a4f2f1cb8dc524cabe5d36b287b0
- Size of remote file:
- 5.78 kB
- SHA256:
- bcc449fcda048b4b07e3d6c61dd27e327cd6eea9c0d365bfb35968796c9cdbd1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.