Instructions to use Azrail/smallm_350 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azrail/smallm_350 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Azrail/smallm_350", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Azrail/smallm_350", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Azrail/smallm_350 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Azrail/smallm_350" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Azrail/smallm_350", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Azrail/smallm_350
- SGLang
How to use Azrail/smallm_350 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 "Azrail/smallm_350" \ --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": "Azrail/smallm_350", "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 "Azrail/smallm_350" \ --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": "Azrail/smallm_350", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Azrail/smallm_350 with Docker Model Runner:
docker model run hf.co/Azrail/smallm_350
Commit History
-
Training in progress, step 159000, checkpoint
Verified signature0907f49 -
Training in progress, step 158000, checkpoint
Verified signaturef5e74ba -
Training in progress, step 157000, checkpoint
Verified signature4607035 -
Training in progress, step 156000, checkpoint
Verified signaturefd6c10a
-
Training in progress, step 155000, checkpoint
Verified signatureebe4bea -
Training in progress, step 154000, checkpoint
Verified signature5e06ebb -
Training in progress, step 153000, checkpoint
Verified signaturea7c285e -
Training in progress, step 152000, checkpoint
Verified signature7def31c -
Training in progress, step 151000, checkpoint
Verified signaturea526785
-
Training in progress, step 150000, checkpoint
Verified signaturebdd9b75 -
Training in progress, step 149000, checkpoint
Verified signature2bccdcc -
Training in progress, step 148000, checkpoint
Verified signature23e0c37 -
Training in progress, step 147000, checkpoint
Verified signature46547b8
-
Training in progress, step 146000, checkpoint
Verified signature98cbb73 -
Training in progress, step 145000, checkpoint
Verified signatured5e8df7 -
Training in progress, step 144000, checkpoint
Verified signaturef91c739 -
Training in progress, step 143000, checkpoint
Verified signature7ac41b6 -
Training in progress, step 142000, checkpoint
Verified signature3bc6139
-
Training in progress, step 141000, checkpoint
Verified signature083ed97 -
Training in progress, step 140000, checkpoint
Verified signature5e94c44 -
Training in progress, step 139000, checkpoint
Verified signaturecac81bd -
Training in progress, step 138000, checkpoint
Verified signaturecdef79e -
Training in progress, step 137000, checkpoint
Verified signatureef24e65 -
Training in progress, step 136000, checkpoint
Verified signaturee1d38bf
-
Training in progress, step 135000, checkpoint
Verified signature7300058 -
Training in progress, step 134000, checkpoint
Verified signature8a137ae -
Training in progress, step 133000, checkpoint
Verified signature0a14e70 -
Training in progress, step 132000, checkpoint
Verified signaturee1700dd -
Training in progress, step 131000, checkpoint
Verified signature0034770 -
Training in progress, step 130000, checkpoint
Verified signature9476241 -
Training in progress, step 129000, checkpoint
Verified signature8b41612 -
Training in progress, step 128000, checkpoint
Verified signaturea175442 -
Training in progress, step 127000, checkpoint
Verified signature88025e6
-
Training in progress, step 126000, checkpoint
Verified signatureab66e32 -
Training in progress, step 125000, checkpoint
Verified signatured6dfe75 -
Training in progress, step 124000, checkpoint
Verified signaturec5957cb -
Training in progress, step 123000, checkpoint
Verified signature2431107 -
Training in progress, step 122000, checkpoint
Verified signatureea8b40f -
Training in progress, step 121000, checkpoint
Verified signature4d41ac6 -
Training in progress, step 120000, checkpoint
Verified signature9995fe8 -
Training in progress, step 119000, checkpoint
Verified signature378f100 -
Training in progress, step 118000, checkpoint
Verified signaturea5d2b4c -
Training in progress, step 117000, checkpoint
Verified signature200e13b
-
Training in progress, step 116000, checkpoint
Verified signature730f7ae -
Training in progress, step 115000, checkpoint
Verified signature424a6be -
Training in progress, step 114000, checkpoint
Verified signature423c24c -
Training in progress, step 113000, checkpoint
Verified signatureb1c87c0 -
Training in progress, step 112000, checkpoint
Verified signature00627b9 -
Training in progress, step 111000, checkpoint
Verified signaturea49add1 -
Training in progress, step 110000, checkpoint
Verified signature473f781