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
f34b5c80497ac2e5c6dd38fe230cf5f7c0bb6c1ced919ed2f377cbba587164ca
Browse files
pytorch_model-00056-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f95c2933ac7025bb339975674f73777f09271ecbb4848accaf4c39da5385cd6c
|
| 3 |
+
size 448827132
|
pytorch_model-00057-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bec4d5d2a697f46455448ce4fd2ae2725142e5a7d2b830d4e12a306740f20b53
|
| 3 |
+
size 360711894
|
pytorch_model-00058-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad6b08788ff0099cec50c87340ac78677cb01c52fdb9de24620fbf52874fdec5
|
| 3 |
+
size 448827132
|
pytorch_model-00059-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9250dc1febec2bbc16a71a30bd4a5a51ab5fdc18a99623563ae2708de0d515d
|
| 3 |
+
size 360711894
|
pytorch_model-00060-of-00067.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32b97672d2fdf2aaaeea6f032b1f48a2771464770967004e2660294b1bfd3c18
|
| 3 |
+
size 448827132
|