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
-
Upload config
Verified signature5da701e
-
Upload config
Verified signaturee8d461a
-
Upload config
Verified signature558085e -
Upload config
Verified signature958e9e2 -
Upload config
Verified signature9edce7e -
Upload config
Verified signatureeeae824 -
Upload tokenizer
Verified signature0a6c273 -
Update README.md
Verified signature34f3cd9 -
Upload SmalLmForCausalLM
Verified signature61cca66 -
Model save
Verified signature034688c -
Training in progress, step 70000, checkpoint
Verified signaturea13a28f -
Training in progress, step 70000
Verified signatured2f60d9 -
Training in progress, step 69000, checkpoint
Verified signature2f6caad -
Training in progress, step 69000
Verified signature05c8389 -
Training in progress, step 68000, checkpoint
Verified signaturefecf097 -
Training in progress, step 68000
Verified signature0728805 -
Training in progress, step 67000, checkpoint
Verified signature916dee2 -
Training in progress, step 67000
Verified signaturebad5581 -
Training in progress, step 66000, checkpoint
Verified signatured083a74 -
Training in progress, step 66000
Verified signaturefa67c72 -
Training in progress, step 65000, checkpoint
Verified signature295ed29 -
Training in progress, step 65000
Verified signature1241868 -
Training in progress, step 64000, checkpoint
Verified signatureb9e6be8 -
Training in progress, step 64000
Verified signature613f415 -
Training in progress, step 63000, checkpoint
Verified signaturebf603f5 -
Training in progress, step 63000
Verified signatureafb6ff9 -
Training in progress, step 62000, checkpoint
Verified signaturee321181 -
Training in progress, step 62000
Verified signatureec1e826 -
Training in progress, step 61000, checkpoint
Verified signature604ad73 -
Training in progress, step 61000
Verified signature8bca468
-
Training in progress, step 60000, checkpoint
Verified signature1f4e6ad -
Training in progress, step 60000
Verified signaturef5f3d48 -
Training in progress, step 59000, checkpoint
Verified signature1880391 -
Training in progress, step 59000
Verified signature2b89912 -
Training in progress, step 58000, checkpoint
Verified signature413bb4c -
Training in progress, step 58000
Verified signaturea2d20cc -
Training in progress, step 57000, checkpoint
Verified signaturee435817 -
Training in progress, step 57000
Verified signature72ae520 -
Training in progress, step 56000, checkpoint
Verified signature9d120c7 -
Training in progress, step 56000
Verified signaturee673a15 -
Training in progress, step 55000, checkpoint
Verified signature1063b27 -
Training in progress, step 55000
Verified signaturec8f570c -
Training in progress, step 54000, checkpoint
Verified signature7674809 -
Training in progress, step 54000
Verified signature67f9420 -
Training in progress, step 53000, checkpoint
Verified signature7d249d7 -
Training in progress, step 53000
Verified signature0e7c402 -
Training in progress, step 52000, checkpoint
Verified signature2742ab3 -
Training in progress, step 52000
Verified signature38b495b -
Training in progress, step 51000, checkpoint
Verified signaturefc9192a -
Training in progress, step 51000
Verified signature3dc6315