Instructions to use Barkavi/LLAMA_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Barkavi/LLAMA_7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Barkavi/LLAMA_7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Barkavi/LLAMA_7B") model = AutoModelForCausalLM.from_pretrained("Barkavi/LLAMA_7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Barkavi/LLAMA_7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Barkavi/LLAMA_7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Barkavi/LLAMA_7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Barkavi/LLAMA_7B
- SGLang
How to use Barkavi/LLAMA_7B 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 "Barkavi/LLAMA_7B" \ --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": "Barkavi/LLAMA_7B", "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 "Barkavi/LLAMA_7B" \ --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": "Barkavi/LLAMA_7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Barkavi/LLAMA_7B with Docker Model Runner:
docker model run hf.co/Barkavi/LLAMA_7B
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.5083508
-
Delete tokenizer.json
9fc3e8c -
Update tokenizer_config.json
a0107b4
-
Upload folder using huggingface_hub (#2)
- 45dabbef3bb35a60d9805d64c9cddea57424f02f542df29363019e6b34ae00ac (0f23cf3bc6d9a4752a7809a9e5ba0ec012954896) - 4e0b541d3b41923f26a973b9c5c2ac61a5ad3b57aba7495bce6c43f04670f58e (53713a7a2f40659111bd0de3378a82f0bbf09a79) - 8a74c4cbccc44f0056ada6a000b3da44b8d44409bd999d1244bd34ceed178d77 (7e0229e287765d3807e2c9307afdbe1cf629a399) - 4e62fbe231648b9f02f1eea299df5bf1851793f0b76544f2e96f92079fce5a45 (483f6c57423ea0e8dd5ee2220cfea17af5a9e083) - 41e60c3fd5fd7d2d239c1366406b63e561901f509e066024a4aa7bfb04359aa6 (5485eebec5af4ef7a7acd40eca47fc5672116b60) - aa309ed869128e324640b22887d832e483963c3b021f276a5e7c847da37c523c (bbd556b14b0922da1cce5c29cc03b6114407d501) - 3f56d28a766f9b74ed4f19cf1067dc772d7baf3d1b4e9d4b174f70266bcd6092 (b61d30a577da79acaa95583720566d3e7e4b5cfd) - 3d5b4b63c0c44625b0e0fbbd31a085e8a6e24cb60cf5d3bc8190164f2bf2dca6 (72eff6215859efc6509654243ce0cd994e86866f) - 03a27ef155b6f64aabce938e289d4c86f855f299bd464f8d57bdab50163871be (7aa8208fed63a46d6cbb5f03e8c2a03f055b018b) - da0b956e…b37114b -
Delete tokenizer_config.json
b64f6ec -
Delete tokenizer.model
fc5a7ac -
Delete tokenizer.json
557b7eb -
Delete special_tokens_map.json
e1bdc23 -
Delete generation_config.json
7d25afe -
Delete config.json
f418fc6 -
Delete pytorch_model.bin.index.json
e5d072e
-
Upload pytorch_model.bin.index.json
3bc8ab1 -
Upload 6 files
7913cf5 -
initial commit
Sundararajandbfc5c2