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
-
Upload SmalLmForCausalLM
Verified signaturefbb3ef5 -
Training in progress, step 159000, checkpoint
Verified signature0907f49 -
Training in progress, step 159000
Verified signatured983cfc -
Training in progress, step 158000, checkpoint
Verified signaturef5e74ba -
Training in progress, step 158000
Verified signaturef60955d -
Training in progress, step 157000, checkpoint
Verified signature4607035 -
Training in progress, step 157000
Verified signaturee084b2b -
Training in progress, step 156000, checkpoint
Verified signaturefd6c10a -
Training in progress, step 156000
Verified signature866833b
-
Training in progress, step 155000, checkpoint
Verified signatureebe4bea -
Training in progress, step 155000
Verified signaturec66afaa -
Training in progress, step 154000, checkpoint
Verified signature5e06ebb -
Training in progress, step 154000
Verified signature65b48f3 -
Training in progress, step 153000, checkpoint
Verified signaturea7c285e -
Training in progress, step 153000
Verified signature1f4d5a9 -
Training in progress, step 152000, checkpoint
Verified signature7def31c -
Training in progress, step 152000
Verified signature68aaea4 -
Training in progress, step 151000, checkpoint
Verified signaturea526785 -
Training in progress, step 151000
Verified signaturead656f6
-
Training in progress, step 150000, checkpoint
Verified signaturebdd9b75 -
Training in progress, step 150000
Verified signaturee12b5b2 -
Training in progress, step 149000, checkpoint
Verified signature2bccdcc -
Training in progress, step 149000
Verified signatureacc947f -
Training in progress, step 148000, checkpoint
Verified signature23e0c37 -
Training in progress, step 148000
Verified signatureee37e32 -
Training in progress, step 147000, checkpoint
Verified signature46547b8 -
Training in progress, step 147000
Verified signature11233fd
-
Training in progress, step 146000, checkpoint
Verified signature98cbb73 -
Training in progress, step 146000
Verified signature5c06d4a -
Training in progress, step 145000, checkpoint
Verified signatured5e8df7 -
Training in progress, step 145000
Verified signature78c2d72 -
Training in progress, step 144000, checkpoint
Verified signaturef91c739 -
Training in progress, step 144000
Verified signaturea632caf -
Training in progress, step 143000, checkpoint
Verified signature7ac41b6 -
Training in progress, step 143000
Verified signature8eb60c0 -
Training in progress, step 142000, checkpoint
Verified signature3bc6139 -
Training in progress, step 142000
Verified signature15ad35d
-
Training in progress, step 141000, checkpoint
Verified signature083ed97 -
Training in progress, step 141000
Verified signaturec49d5ba -
Update README.md
Verified signature7a02f3b -
Upload SmalLmForCausalLM
Verified signaturea78a30e -
Model save
Verified signature06918f2 -
Training in progress, step 140000, checkpoint
Verified signature5e94c44 -
Training in progress, step 140000
Verified signature1e72ac2 -
Training in progress, step 139000, checkpoint
Verified signaturecac81bd -
Training in progress, step 139000
Verified signature0483c23 -
Training in progress, step 138000, checkpoint
Verified signaturecdef79e -
Training in progress, step 138000
Verified signaturea921518 -
Training in progress, step 137000, checkpoint
Verified signatureef24e65 -
Training in progress, step 137000
Verified signature97e8c16