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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Barkavi/LLAMA_7B") model = AutoModelForCausalLM.from_pretrained("Barkavi/LLAMA_7B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
f34b5c80497ac2e5c6dd38fe230cf5f7c0bb6c1ced919ed2f377cbba587164ca 264c434
3bb808d46227918a53cf0b351bdda6718095c0fc2fb8896a0af44953b62ae95a e1de2ae
da0b956e5ffe938104baa7c76bc68f2c97c5d3d9d1be1c0b8f334d7b77c930cb b34b1be
03a27ef155b6f64aabce938e289d4c86f855f299bd464f8d57bdab50163871be 187c9fe
3d5b4b63c0c44625b0e0fbbd31a085e8a6e24cb60cf5d3bc8190164f2bf2dca6 85c7214
3f56d28a766f9b74ed4f19cf1067dc772d7baf3d1b4e9d4b174f70266bcd6092 48417ec
aa309ed869128e324640b22887d832e483963c3b021f276a5e7c847da37c523c 17a0a1f
41e60c3fd5fd7d2d239c1366406b63e561901f509e066024a4aa7bfb04359aa6 ebf0f03
4e62fbe231648b9f02f1eea299df5bf1851793f0b76544f2e96f92079fce5a45 f4e38c5
8a74c4cbccc44f0056ada6a000b3da44b8d44409bd999d1244bd34ceed178d77 0c8d08f
4e0b541d3b41923f26a973b9c5c2ac61a5ad3b57aba7495bce6c43f04670f58e efa2dde
45dabbef3bb35a60d9805d64c9cddea57424f02f542df29363019e6b34ae00ac c3742dd
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 dbfc5c2
Sundararajan commited on