Instructions to use Defetya/ru-3b-openllama-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Defetya/ru-3b-openllama-transformers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Defetya/ru-3b-openllama-transformers")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Defetya/ru-3b-openllama-transformers") model = AutoModelForCausalLM.from_pretrained("Defetya/ru-3b-openllama-transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Defetya/ru-3b-openllama-transformers with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Defetya/ru-3b-openllama-transformers" # 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-3b-openllama-transformers", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Defetya/ru-3b-openllama-transformers
- SGLang
How to use Defetya/ru-3b-openllama-transformers 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-3b-openllama-transformers" \ --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-3b-openllama-transformers", "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-3b-openllama-transformers" \ --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-3b-openllama-transformers", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Defetya/ru-3b-openllama-transformers with Docker Model Runner:
docker model run hf.co/Defetya/ru-3b-openllama-transformers
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.cf453e6
-
Update config.json
Verified signature7f5dd94 -
Update config.json
Verified signature4828674
-
Update README.md
Verified signature8632769 -
Update README.md
Verified signature7fbe181 -
Delete open-llama-saiga-test
Verified signature7faf191 -
Upload 2 files
Verified signature5b89e87 -
Update README.md
Verified signaturef381974
-
Upload open-llama-saiga-test with huggingface_hub
Verified signature7333aa3 -
Upload LlamaForCausalLM
Verified signature426fa27 -
Delete config.json
Verified signature9dd543e -
Delete special_tokens_map.json
Verified signaturec0e1a18 -
Delete generation_config.json
Verified signatured7bd676 -
Delete pytorch_model.bin
Verified signature8a519a9 -
Upload open-llama-wiki-3B-1 with huggingface_hub
Verified signature8bb8ab4
-
Delete open-llama-corpus-10-3B
Verified signature0776b8b -
Update README.md
Verified signature1e98ad7 -
Upload LlamaForCausalLM
Verified signature67a0e78 -
Delete generation_config.json
Verified signaturebdf9df0 -
Delete model.safetensors.index.json
Verified signature390ef0a -
Delete model-00002-of-00002.safetensors
Verified signaturee567f4d -
Delete model-00001-of-00002.safetensors
Verified signaturea38e4da -
Upload open-llama-wiki-3B-1 with huggingface_hub
Verified signature58aae48
-
Update README.md
Verified signature1ea0e63 -
Update README.md
Verified signaturead20086 -
Update README.md
Verified signature84c606f -
Delete open-llama-corpus-2-3B
Verified signature00e4fde -
Upload special_tokens_map.json
Verified signaturea84eafe -
Update README.md
Verified signature4e8d00b -
Upload tokenizer_config.json
Verified signature61eddf2 -
Upload tokenizer.model
Verified signature96263e1 -
Update README.md
Verified signature73a5ef8 -
Upload LlamaForCausalLM
Verified signatureda7d895 -
Delete model.safetensors.index.json
Verified signature8bb4d79 -
Delete generation_config.json
Verified signature75f416f -
Delete config.json
Verified signature24aaff4 -
Delete model-00003-of-00003.safetensors
Verified signature8cb7451 -
Delete model-00002-of-00003.safetensors
Verified signature51423a9 -
Delete model-00001-of-00003.safetensors
Verified signature2063109 -
Upload open-llama-corpus-10-3B with huggingface_hub
Verified signature041896f
-
Upload open-llama-corpus-2-3B with huggingface_hub
Verified signature76d07c3
-
Upload LlamaForCausalLM
Verified signature5882ab0 -
Delete flax_model.msgpack
Verified signature3dccd18 -
Upload flax_model.msgpack with huggingface_hub
Verified signaturec360622 -
Delete flax_model.msgpack
Verified signature9e7a71e -
Delete model.safetensors.index.json
Verified signature83c7379 -
Delete model-00006-of-00006.safetensors
Verified signatureb480a91 -
Delete model-00005-of-00006.safetensors
Verified signature421e9cb -
Delete model-00004-of-00006.safetensors
Verified signaturec3090ab -
Delete model-00003-of-00006.safetensors
Verified signaturec35ef1a