Instructions to use ViraIntelligentDataMining/PersianLLaMA-13B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ViraIntelligentDataMining/PersianLLaMA-13B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ViraIntelligentDataMining/PersianLLaMA-13B-Instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ViraIntelligentDataMining/PersianLLaMA-13B-Instruct") model = AutoModelForCausalLM.from_pretrained("ViraIntelligentDataMining/PersianLLaMA-13B-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ViraIntelligentDataMining/PersianLLaMA-13B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ViraIntelligentDataMining/PersianLLaMA-13B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ViraIntelligentDataMining/PersianLLaMA-13B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ViraIntelligentDataMining/PersianLLaMA-13B-Instruct
- SGLang
How to use ViraIntelligentDataMining/PersianLLaMA-13B-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 "ViraIntelligentDataMining/PersianLLaMA-13B-Instruct" \ --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": "ViraIntelligentDataMining/PersianLLaMA-13B-Instruct", "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 "ViraIntelligentDataMining/PersianLLaMA-13B-Instruct" \ --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": "ViraIntelligentDataMining/PersianLLaMA-13B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ViraIntelligentDataMining/PersianLLaMA-13B-Instruct with Docker Model Runner:
docker model run hf.co/ViraIntelligentDataMining/PersianLLaMA-13B-Instruct
Commit History
-
Update README.md
Verified signature70d68b2 -
Upload config.json
Verified signature4998fd3 -
Upload model-00006-of-00006.safetensors with huggingface_hub
Verified signature2d3647d -
Upload model-00005-of-00006.safetensors with huggingface_hub
Verified signature283d6a3 -
Upload model-00004-of-00006.safetensors with huggingface_hub
Verified signature8f8f674 -
Upload model-00003-of-00006.safetensors with huggingface_hub
Verified signature9e51ea9 -
Upload tokenizer.model with huggingface_hub
Verified signature6616f62 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturedad797a -
Upload special_tokens_map.json with huggingface_hub
Verified signaturee340bcd -
Upload model.safetensors.index.json with huggingface_hub
Verified signature4c894ce -
Upload generation_config.json with huggingface_hub
Verified signature7a91875 -
Upload added_tokens.json with huggingface_hub
Verified signature894ac2b -
Upload model-00002-of-00006.safetensors with huggingface_hub
Verified signature2f7d740 -
Upload model-00001-of-00006.safetensors with huggingface_hub
Verified signature09802de -
Update README.md
Verified signature9c3f476 -
initial commit
Verified signature2772cd1