Instructions to use ayousanz/mistral-0.3b-backup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ayousanz/mistral-0.3b-backup with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ayousanz/mistral-0.3b-backup")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ayousanz/mistral-0.3b-backup") model = AutoModelForCausalLM.from_pretrained("ayousanz/mistral-0.3b-backup", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ayousanz/mistral-0.3b-backup with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ayousanz/mistral-0.3b-backup" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ayousanz/mistral-0.3b-backup", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ayousanz/mistral-0.3b-backup
- SGLang
How to use ayousanz/mistral-0.3b-backup 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 "ayousanz/mistral-0.3b-backup" \ --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": "ayousanz/mistral-0.3b-backup", "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 "ayousanz/mistral-0.3b-backup" \ --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": "ayousanz/mistral-0.3b-backup", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ayousanz/mistral-0.3b-backup with Docker Model Runner:
docker model run hf.co/ayousanz/mistral-0.3b-backup
Ctrl+K
- checkpoint-10000
- checkpoint-100000
- checkpoint-101000
- checkpoint-102000
- checkpoint-103000
- checkpoint-11000
- checkpoint-12000
- checkpoint-13000
- checkpoint-14000
- checkpoint-15000
- checkpoint-16000
- checkpoint-17000
- checkpoint-18000
- checkpoint-19000
- checkpoint-20000
- checkpoint-21000
- checkpoint-22000
- checkpoint-23000
- checkpoint-24000
- checkpoint-25000
- checkpoint-26000
- checkpoint-27000
- checkpoint-28000
- checkpoint-29000
- checkpoint-30000
- checkpoint-31000
- checkpoint-32000
- checkpoint-33000
- checkpoint-34000
- checkpoint-35000
- checkpoint-36000
- checkpoint-37000
- checkpoint-38000
- checkpoint-39000
- checkpoint-40000
- checkpoint-41000
- checkpoint-42000
- checkpoint-43000
- checkpoint-44000
- checkpoint-45000
- checkpoint-46000
- checkpoint-47000
- checkpoint-48000
- checkpoint-49000
- checkpoint-50000
- checkpoint-51000
- checkpoint-52000
- checkpoint-53000
- checkpoint-54000
- checkpoint-55000