Instructions to use japanese-data-analyze/mistral-0.3b-backup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use japanese-data-analyze/mistral-0.3b-backup with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="japanese-data-analyze/mistral-0.3b-backup")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("japanese-data-analyze/mistral-0.3b-backup") model = AutoModelForCausalLM.from_pretrained("japanese-data-analyze/mistral-0.3b-backup", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use japanese-data-analyze/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 "japanese-data-analyze/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": "japanese-data-analyze/mistral-0.3b-backup", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/japanese-data-analyze/mistral-0.3b-backup
- SGLang
How to use japanese-data-analyze/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 "japanese-data-analyze/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": "japanese-data-analyze/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 "japanese-data-analyze/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": "japanese-data-analyze/mistral-0.3b-backup", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use japanese-data-analyze/mistral-0.3b-backup with Docker Model Runner:
docker model run hf.co/japanese-data-analyze/mistral-0.3b-backup
Commit History
-
Upload folder using huggingface_hub
Verified signature8c1ff9d -
Upload folder using huggingface_hub
Verified signatureea42c2b -
Upload folder using huggingface_hub
Verified signature1a5065a -
Upload folder using huggingface_hub
Verified signature13d8f55 -
Upload folder using huggingface_hub
Verified signature08ba315
-
Upload folder using huggingface_hub
Verified signaturedf87391 -
Upload folder using huggingface_hub
Verified signature444a17e -
Upload folder using huggingface_hub
Verified signature90ca52d -
Upload folder using huggingface_hub
Verified signaturefe616ce -
Upload folder using huggingface_hub
Verified signatureea2c7e5 -
Upload folder using huggingface_hub
Verified signaturef06634c -
Upload folder using huggingface_hub
Verified signature1201a2e -
Upload folder using huggingface_hub
Verified signatureeed7499
-
Upload folder using huggingface_hub
Verified signature16883e7
-
Upload folder using huggingface_hub
Verified signature1c084b3 -
Upload folder using huggingface_hub
Verified signature5049e7f -
Upload folder using huggingface_hub
Verified signature886e793
-
Upload folder using huggingface_hub
Verified signature425f0b1 -
Upload folder using huggingface_hub
Verified signature669bd24 -
Upload folder using huggingface_hub
Verified signature6311b64 -
Upload folder using huggingface_hub
Verified signature67eafa4 -
Update README.md
Verified signature7c7df20 -
Upload folder using huggingface_hub
Verified signature7e3414c -
Upload folder using huggingface_hub
Verified signaturec21a234
-
Upload folder using huggingface_hub
Verified signature58dc91b -
Upload folder using huggingface_hub
Verified signature020e0a0 -
Upload folder using huggingface_hub
Verified signaturec6aac9a -
Upload folder using huggingface_hub
Verified signaturec29b08e -
Upload folder using huggingface_hub
Verified signature0661eed -
Upload folder using huggingface_hub
Verified signature5071e0f -
Update README.md
Verified signatured7ef293 -
Create README.md
Verified signature0aaaccf -
Upload folder using huggingface_hub
Verified signature5dc38e5 -
Upload folder using huggingface_hub
Verified signature8a9e655 -
initial commit
Verified signature6c51fa8