Text Generation
Transformers
Safetensors
smallm
Generated from Trainer
trl
sft
conversational
custom_code
Instructions to use Azrail/smallm_70_instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azrail/smallm_70_instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Azrail/smallm_70_instruct", 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_instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Azrail/smallm_70_instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Azrail/smallm_70_instruct" # 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_instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Azrail/smallm_70_instruct
- SGLang
How to use Azrail/smallm_70_instruct 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_instruct" \ --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_instruct", "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_instruct" \ --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_instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Azrail/smallm_70_instruct with Docker Model Runner:
docker model run hf.co/Azrail/smallm_70_instruct
Commit History
-
Update README.md
Verified signature4125739 -
Upload SmalLmForCausalLM
Verified signatured9b459c -
Model save
Verified signature1031da1 -
Training in progress, step 16568, checkpoint
Verified signature30a1120 -
Training in progress, step 16568
Verified signature1f568c2 -
Training in progress, step 16000, checkpoint
Verified signaturefa90fe3 -
Training in progress, step 16000
Verified signature59b7b86 -
Training in progress, step 15000, checkpoint
Verified signature2992939 -
Training in progress, step 15000
Verified signaturea786784 -
Training in progress, step 14000, checkpoint
Verified signature2ff638e -
Training in progress, step 14000
Verified signaturea9d468f -
Training in progress, step 13000, checkpoint
Verified signature9c9e234 -
Training in progress, step 13000
Verified signature9731cc8 -
Training in progress, step 12000, checkpoint
Verified signatureee20799 -
Training in progress, step 12000
Verified signature32d0374 -
Training in progress, step 11000, checkpoint
Verified signature43dcfec -
Training in progress, step 11000
Verified signature2529d88 -
Training in progress, step 10000, checkpoint
Verified signaturecd2e3d5 -
Training in progress, step 10000
Verified signature9f9b8f0 -
Training in progress, step 9000, checkpoint
Verified signatureb42f1fa -
Training in progress, step 9000
Verified signature8eeed38 -
Training in progress, step 8000, checkpoint
Verified signature70a15c9 -
Training in progress, step 8000
Verified signature80e23f8 -
Training in progress, step 7000, checkpoint
Verified signaturea91962e -
Training in progress, step 7000
Verified signature92f1601 -
Training in progress, step 6000, checkpoint
Verified signature00baf96 -
Training in progress, step 6000
Verified signatured3159bb -
Training in progress, step 5000, checkpoint
Verified signature12f5941 -
Training in progress, step 5000
Verified signature3193144
-
Training in progress, step 4000, checkpoint
Verified signature3a055c3 -
Training in progress, step 4000
Verified signature8b170fe -
Training in progress, step 3000, checkpoint
Verified signaturef418e80 -
Training in progress, step 3000
Verified signature9a9c90b -
Training in progress, step 2000, checkpoint
Verified signatureb3a82a1 -
Training in progress, step 2000
Verified signature2dfb166 -
Training in progress, step 1000, checkpoint
Verified signaturee4c17b8 -
Training in progress, step 1000
Verified signaturef0650f8 -
Training in progress, step 1000
Verified signature008f540 -
Training in progress, step 1000, checkpoint
Verified signaturef145bd4 -
Training in progress, step 1000
Verified signaturec070860 -
initial commit
Verified signature8ebf8d6