Instructions to use Dawoodthouseef/llama2-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Dawoodthouseef/llama2-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Dawoodthouseef/llama2-gguf", filename="llama-2-13b-chat.Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Dawoodthouseef/llama2-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Dawoodthouseef/llama2-gguf:Q2_K # Run inference directly in the terminal: llama-cli -hf Dawoodthouseef/llama2-gguf:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Dawoodthouseef/llama2-gguf:Q2_K # Run inference directly in the terminal: llama-cli -hf Dawoodthouseef/llama2-gguf:Q2_K
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Dawoodthouseef/llama2-gguf:Q2_K # Run inference directly in the terminal: ./llama-cli -hf Dawoodthouseef/llama2-gguf:Q2_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Dawoodthouseef/llama2-gguf:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf Dawoodthouseef/llama2-gguf:Q2_K
Use Docker
docker model run hf.co/Dawoodthouseef/llama2-gguf:Q2_K
- LM Studio
- Jan
- vLLM
How to use Dawoodthouseef/llama2-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dawoodthouseef/llama2-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dawoodthouseef/llama2-gguf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Dawoodthouseef/llama2-gguf:Q2_K
- Ollama
How to use Dawoodthouseef/llama2-gguf with Ollama:
ollama run hf.co/Dawoodthouseef/llama2-gguf:Q2_K
- Unsloth Studio
How to use Dawoodthouseef/llama2-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Dawoodthouseef/llama2-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Dawoodthouseef/llama2-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Dawoodthouseef/llama2-gguf to start chatting
- Docker Model Runner
How to use Dawoodthouseef/llama2-gguf with Docker Model Runner:
docker model run hf.co/Dawoodthouseef/llama2-gguf:Q2_K
- Lemonade
How to use Dawoodthouseef/llama2-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Dawoodthouseef/llama2-gguf:Q2_K
Run and chat with the model
lemonade run user.llama2-gguf-Q2_K
List all available models
lemonade list
Commit ·
1297622
1
Parent(s): b62830c
Upload 5 files
Browse files- .gitattributes +5 -0
- llama-2-13b-chat.Q2_K.gguf +3 -0
- llama-2-13b-chat.Q8_0.gguf +3 -0
- llama-2-7b-chat.Q8_0.gguf +3 -0
- llama-2-coder-7b.Q5_K_M.gguf +3 -0
- uncensored-frank-7b.Q5_K_M.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
llama2.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
Responsible-Use-Guide.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
llama2.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
Responsible-Use-Guide.pdf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
llama-2-13b-chat.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
llama-2-13b-chat.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
llama-2-7b-chat.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
llama-2-coder-7b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
uncensored-frank-7b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
llama-2-13b-chat.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb69352085bf25c70bf0de94fc3dc9248609a255d7482a3fb308d102aabb066c
|
| 3 |
+
size 5429348224
|
llama-2-13b-chat.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f4d06112114dd1b48023305578ad52b690d3aee42181631a2bddbe856f75ae6
|
| 3 |
+
size 13831319424
|
llama-2-7b-chat.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f47dade5e86466edb66c5afe6f8e9fb1fbb2c292827b90bd46b7a1817d864bf2
|
| 3 |
+
size 7161089728
|
llama-2-coder-7b.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f616329e71e51da808f6232c03e056dd018f5cdde2e5c6d1a51f3320af56bdd9
|
| 3 |
+
size 4783156928
|
uncensored-frank-7b.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6eb4e0098c36d31a2c2ef56c5f6118ee470974f7bc870930069dfe8e152f0228
|
| 3 |
+
size 4783156960
|