Text Generation
Transformers
Safetensors
English
smallm
transformer
language-model
experimental
conversational
custom_code
Instructions to use Azrail/smallm_70 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azrail/smallm_70 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Azrail/smallm_70", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Azrail/smallm_70", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Azrail/smallm_70 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Azrail/smallm_70" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Azrail/smallm_70", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Azrail/smallm_70
- SGLang
How to use Azrail/smallm_70 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_70" \ --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": "Azrail/smallm_70", "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 "Azrail/smallm_70" \ --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": "Azrail/smallm_70", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Azrail/smallm_70 with Docker Model Runner:
docker model run hf.co/Azrail/smallm_70
Commit History
-
Training in progress, step 70000, checkpoint
Verified signaturea13a28f -
Training in progress, step 69000, checkpoint
Verified signature2f6caad -
Training in progress, step 68000, checkpoint
Verified signaturefecf097 -
Training in progress, step 67000, checkpoint
Verified signature916dee2 -
Training in progress, step 66000, checkpoint
Verified signatured083a74 -
Training in progress, step 65000, checkpoint
Verified signature295ed29 -
Training in progress, step 64000, checkpoint
Verified signatureb9e6be8 -
Training in progress, step 63000, checkpoint
Verified signaturebf603f5 -
Training in progress, step 62000, checkpoint
Verified signaturee321181 -
Training in progress, step 61000, checkpoint
Verified signature604ad73
-
Training in progress, step 60000, checkpoint
Verified signature1f4e6ad -
Training in progress, step 59000, checkpoint
Verified signature1880391 -
Training in progress, step 58000, checkpoint
Verified signature413bb4c -
Training in progress, step 57000, checkpoint
Verified signaturee435817 -
Training in progress, step 56000, checkpoint
Verified signature9d120c7 -
Training in progress, step 55000, checkpoint
Verified signature1063b27 -
Training in progress, step 54000, checkpoint
Verified signature7674809 -
Training in progress, step 53000, checkpoint
Verified signature7d249d7 -
Training in progress, step 52000, checkpoint
Verified signature2742ab3 -
Training in progress, step 51000, checkpoint
Verified signaturefc9192a -
Training in progress, step 50000, checkpoint
Verified signaturec0493db -
Training in progress, step 49000, checkpoint
Verified signaturef2e8f17 -
Training in progress, step 48000, checkpoint
Verified signaturecf6f164 -
Training in progress, step 47000, checkpoint
Verified signature3b48c2d -
Training in progress, step 46000, checkpoint
Verified signature37536e5 -
Training in progress, step 45000, checkpoint
Verified signaturef483548 -
Training in progress, step 44000, checkpoint
Verified signature1f3fda8 -
Training in progress, step 43000, checkpoint
Verified signature26fa5fb -
Training in progress, step 42000, checkpoint
Verified signature4078c83 -
Training in progress, step 41000, checkpoint
Verified signaturea488be6 -
Training in progress, step 40000, checkpoint
Verified signature4bb43d8 -
Training in progress, step 39000, checkpoint
Verified signature01488f7 -
Training in progress, step 38000, checkpoint
Verified signaturece60e67 -
Training in progress, step 37000, checkpoint
Verified signature906e5e4 -
Training in progress, step 36000, checkpoint
Verified signature8ed0a6f -
Training in progress, step 35000, checkpoint
Verified signature9561004 -
Training in progress, step 34000, checkpoint
Verified signature0435f8e -
Training in progress, step 33000, checkpoint
Verified signatureabace6a -
Training in progress, step 32000, checkpoint
Verified signature626ab01 -
Training in progress, step 31000, checkpoint
Verified signature5de6967 -
Training in progress, step 30000, checkpoint
Verified signature097b117 -
Training in progress, step 29000, checkpoint
Verified signature4be7a9a -
Training in progress, step 28000, checkpoint
Verified signature005139b -
Training in progress, step 27000, checkpoint
Verified signatured22c68c -
Training in progress, step 26000, checkpoint
Verified signature32ddfb5 -
Training in progress, step 25000, checkpoint
Verified signature8f22f0a -
Training in progress, step 24000, checkpoint
Verified signature1b3dbd2 -
Training in progress, step 23000, checkpoint
Verified signature708478d -
Training in progress, step 21000, checkpoint
Verified signature3a855db -
Training in progress, step 20000, checkpoint
Verified signature89aa98c