Instructions to use Heatz/cmd-small-3epoch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Heatz/cmd-small-3epoch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Heatz/cmd-small-3epoch")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Heatz/cmd-small-3epoch") model = AutoModelForMultimodalLM.from_pretrained("Heatz/cmd-small-3epoch") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Heatz/cmd-small-3epoch with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Heatz/cmd-small-3epoch" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Heatz/cmd-small-3epoch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Heatz/cmd-small-3epoch
- SGLang
How to use Heatz/cmd-small-3epoch 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 "Heatz/cmd-small-3epoch" \ --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": "Heatz/cmd-small-3epoch", "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 "Heatz/cmd-small-3epoch" \ --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": "Heatz/cmd-small-3epoch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Heatz/cmd-small-3epoch with Docker Model Runner:
docker model run hf.co/Heatz/cmd-small-3epoch
- Xet hash:
- d6f2acac71226a3935fdf6205a97d7b40dc1be1886150e47d29c1cec7a8096cc
- Size of remote file:
- 235 MB
- SHA256:
- 579b03b3fb995c338c2117c74f57f827edd40ea980303b1ec61439af4592cee5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.