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
8a74c4cbccc44f0056ada6a000b3da44b8d44409bd999d1244bd34ceed178d77
Browse files
pytorch_model-00011-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47e549b62b5f926fb9bbe6b51f2393a4ada58941e73bf75588b8ebfe5235de89
|
| 3 |
+
size 360711894
|
pytorch_model-00012-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22877cd1cf67817fac4adda0ce28c5fc371dff018fbe6c3ab4483a965852dcce
|
| 3 |
+
size 448827132
|
pytorch_model-00013-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6340fe37e0f30d061b60ef3d6888c6e67ccca83e10ec549193c2bff3267a660c
|
| 3 |
+
size 360711894
|
pytorch_model-00014-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7af4d1d6a2615893b82c4555903c2187e6c2c868fd184ab11177e137282c26c1
|
| 3 |
+
size 448827132
|
pytorch_model-00015-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:559ffafc5260755fe573f370e2c5c1ebddd2e8c51b408656e874af720067b211
|
| 3 |
+
size 360711894
|