Instructions to use Defetya/ru-llama-2-instruct-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Defetya/ru-llama-2-instruct-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Defetya/ru-llama-2-instruct-13B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Defetya/ru-llama-2-instruct-13B") model = AutoModelForCausalLM.from_pretrained("Defetya/ru-llama-2-instruct-13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Defetya/ru-llama-2-instruct-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Defetya/ru-llama-2-instruct-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Defetya/ru-llama-2-instruct-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Defetya/ru-llama-2-instruct-13B
- SGLang
How to use Defetya/ru-llama-2-instruct-13B 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 "Defetya/ru-llama-2-instruct-13B" \ --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": "Defetya/ru-llama-2-instruct-13B", "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 "Defetya/ru-llama-2-instruct-13B" \ --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": "Defetya/ru-llama-2-instruct-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Defetya/ru-llama-2-instruct-13B with Docker Model Runner:
docker model run hf.co/Defetya/ru-llama-2-instruct-13B
Commit History
-
Delete pytorch_model-00007-of-00007.bin
195da37 -
Delete pytorch_model-00006-of-00007.bin
7ed7846 -
Delete pytorch_model-00005-of-00007.bin
fb416d0 -
Delete pytorch_model-00004-of-00007.bin
85e3b46 -
Delete pytorch_model-00003-of-00007.bin
e6a66d7 -
Delete pytorch_model-00002-of-00007.bin
233446b -
Delete pytorch_model-00001-of-00007.bin
55ba492 -
Upload LlamaForCausalLM (#2)
- Upload LlamaForCausalLM (0166d3c4723302363716f60381bade05882c7fb7)429d22b
-
Upload LlamaForCausalLM (#1)
- Upload LlamaForCausalLM (86a64f227d3cd1220b8c71f56d2bb6866593e399)629f0ca -
initial commit
d6fec52