Instructions to use tensorblock/ko-ref-llama2-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/ko-ref-llama2-7b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/ko-ref-llama2-7b-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/ko-ref-llama2-7b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/ko-ref-llama2-7b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/ko-ref-llama2-7b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/ko-ref-llama2-7b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/ko-ref-llama2-7b-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 tensorblock/ko-ref-llama2-7b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/ko-ref-llama2-7b-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 tensorblock/ko-ref-llama2-7b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/ko-ref-llama2-7b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/ko-ref-llama2-7b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ko-ref-llama2-7b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
- SGLang
How to use tensorblock/ko-ref-llama2-7b-GGUF 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 "tensorblock/ko-ref-llama2-7b-GGUF" \ --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": "tensorblock/ko-ref-llama2-7b-GGUF", "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 "tensorblock/ko-ref-llama2-7b-GGUF" \ --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": "tensorblock/ko-ref-llama2-7b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/ko-ref-llama2-7b-GGUF with Ollama:
ollama run hf.co/tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/ko-ref-llama2-7b-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 tensorblock/ko-ref-llama2-7b-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 tensorblock/ko-ref-llama2-7b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/ko-ref-llama2-7b-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/ko-ref-llama2-7b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
- Lemonade
How to use tensorblock/ko-ref-llama2-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/ko-ref-llama2-7b-GGUF:Q2_K
Run and chat with the model
lemonade run user.ko-ref-llama2-7b-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Remove .gguf files (keep Q2_K.gguf)
Browse files- ko-ref-llama2-7b-Q3_K_L.gguf +0 -3
- ko-ref-llama2-7b-Q3_K_M.gguf +0 -3
- ko-ref-llama2-7b-Q3_K_S.gguf +0 -3
- ko-ref-llama2-7b-Q4_0.gguf +0 -3
- ko-ref-llama2-7b-Q4_K_M.gguf +0 -3
- ko-ref-llama2-7b-Q4_K_S.gguf +0 -3
- ko-ref-llama2-7b-Q5_0.gguf +0 -3
- ko-ref-llama2-7b-Q5_K_M.gguf +0 -3
- ko-ref-llama2-7b-Q5_K_S.gguf +0 -3
- ko-ref-llama2-7b-Q6_K.gguf +0 -3
- ko-ref-llama2-7b-Q8_0.gguf +0 -3
ko-ref-llama2-7b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:65f51850e2783f0ba26871427f871db5f23ca39678e2bcf98547c995267ac3eb
|
| 3 |
-
size 3597111392
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2f25144c3f85fb5f5714f30f931de53e71e0fe4ba53dfbc53b6912e1a5c1c627
|
| 3 |
-
size 3298005088
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ea50d03846c3afcfcc8db05f4ca99dba433889c5340733357b58df8538fca5e8
|
| 3 |
-
size 2948304992
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7eefa55fde526243a24fb05420c55ecc32aa24ae99daaf47a2b66f84083e5dd7
|
| 3 |
-
size 3825807456
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:46d80324efb77b2970a4817be6d2c207daca3766ccd50fae564bf827da298cfe
|
| 3 |
-
size 4081004640
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:414d34b12d2f7dc7b826a1f9420b984730b9ab561bb3e976a2145219cc1f6227
|
| 3 |
-
size 3856740448
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a8c9af04e9f964c2dfed69b79e867a9050d0165b14a2c04fb2127e1f589e1a3e
|
| 3 |
-
size 4651692128
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1bdbc0ec71e42c6ca2e61c3f585200d44995ac381075e31b5d0215f8a6a586ca
|
| 3 |
-
size 4783157344
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:604959d40b4ebaef36f9ee06173feed64c5b7bd08b0e13ab98c1c489733c3602
|
| 3 |
-
size 4651692128
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ef13ec35be327f4ea86b32245065e1fcb08bf106e7662148a4182b0bda767561
|
| 3 |
-
size 5529194592
|
|
|
|
|
|
|
|
|
|
|
|
ko-ref-llama2-7b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:44c506fea75aaa16be402b9062dbfda54539c6d1ae85e43e4a8370493f4ce4df
|
| 3 |
-
size 7161090144
|
|
|
|
|
|
|
|
|
|
|
|