Instructions to use israel/LLAMA-Walia-II with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use israel/LLAMA-Walia-II with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="israel/LLAMA-Walia-II")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("israel/LLAMA-Walia-II") model = AutoModelForCausalLM.from_pretrained("israel/LLAMA-Walia-II", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use israel/LLAMA-Walia-II with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "israel/LLAMA-Walia-II" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "israel/LLAMA-Walia-II", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/israel/LLAMA-Walia-II
- SGLang
How to use israel/LLAMA-Walia-II 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 "israel/LLAMA-Walia-II" \ --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": "israel/LLAMA-Walia-II", "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 "israel/LLAMA-Walia-II" \ --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": "israel/LLAMA-Walia-II", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use israel/LLAMA-Walia-II with Docker Model Runner:
docker model run hf.co/israel/LLAMA-Walia-II
Download tokenizer.model from israel/LLAMA-Walia-II: direct link, hf CLI and curl.
- Browser
- Download file 899 kB
-
https://huggingface.co/israel/LLAMA-Walia-II/resolve/main/tokenizer.model
- Command line
-
hf download hf://israel/LLAMA-Walia-II/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/israel/LLAMA-Walia-II/resolve/main/tokenizer.model
899 kB
- Xet hash:
- efd6c3eae6207fa2eac618cf2ac98a2d4c893a11d8e864377fabcc7b5e3259c0
- Size of remote file:
- 899 kB
- SHA256:
- 74fbb036c01f289ee500df89c8822364205f794bde9bee875f8bfdd584832ef2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.