Text Generation
Transformers
GGUF
English
Vietnamese
ghost
tools
chat
TensorBlock
GGUF
conversational
Instructions to use tensorblock/ghost-7b-alpha-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/ghost-7b-alpha-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/ghost-7b-alpha-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/ghost-7b-alpha-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/ghost-7b-alpha-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/ghost-7b-alpha-GGUF", filename="ghost-7b-alpha-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/ghost-7b-alpha-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/ghost-7b-alpha-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/ghost-7b-alpha-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/ghost-7b-alpha-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/ghost-7b-alpha-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/ghost-7b-alpha-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/ghost-7b-alpha-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/ghost-7b-alpha-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/ghost-7b-alpha-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/ghost-7b-alpha-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/ghost-7b-alpha-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/ghost-7b-alpha-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ghost-7b-alpha-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/ghost-7b-alpha-GGUF:Q2_K
- SGLang
How to use tensorblock/ghost-7b-alpha-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/ghost-7b-alpha-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ghost-7b-alpha-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/ghost-7b-alpha-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/ghost-7b-alpha-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/ghost-7b-alpha-GGUF with Ollama:
ollama run hf.co/tensorblock/ghost-7b-alpha-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/ghost-7b-alpha-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/ghost-7b-alpha-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/ghost-7b-alpha-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/ghost-7b-alpha-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/ghost-7b-alpha-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/ghost-7b-alpha-GGUF:Q2_K
- Lemonade
How to use tensorblock/ghost-7b-alpha-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/ghost-7b-alpha-GGUF:Q2_K
Run and chat with the model
lemonade run user.ghost-7b-alpha-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- ghost-7b-alpha-Q3_K_L.gguf +0 -3
- ghost-7b-alpha-Q3_K_S.gguf +0 -3
- ghost-7b-alpha-Q4_0.gguf +0 -3
- ghost-7b-alpha-Q4_K_M.gguf +0 -3
- ghost-7b-alpha-Q4_K_S.gguf +0 -3
- ghost-7b-alpha-Q5_0.gguf +0 -3
- ghost-7b-alpha-Q5_K_M.gguf +0 -3
- ghost-7b-alpha-Q5_K_S.gguf +0 -3
- ghost-7b-alpha-Q6_K.gguf +0 -3
- ghost-7b-alpha-Q8_0.gguf +0 -3
ghost-7b-alpha-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b8b4e62ab3d9b7a3918d2eb706d328b623151726fd9ac48e0d7a38caa7b140d1
|
| 3 |
-
size 3822025952
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d89435a966f558fdb1b15616cf04dcb03f915e3167ee8ed9a00f4d1fe7784980
|
| 3 |
-
size 3164568800
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2380fa7693d447155074566ff6281a477eb5433d79a6e7a79cc2b6787a24373f
|
| 3 |
-
size 4108917984
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9b80f2048fb3ded8fe6e9c10c5e25494a271dedeb70baf86fa22d0b2170951a4
|
| 3 |
-
size 4368440544
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:28324c00b9c205972ee01acb5debfbe0668731424649f6c8c0ce08a63ed928dd
|
| 3 |
-
size 4140375264
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c17e1005a2e0cae1b29488f3a0d45757610a2b73f2d4b7b7ceb66c62956f5a9a
|
| 3 |
-
size 4997717216
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1d67ae211b4d95ba4295f7276cc47c2abd5908cc277efa07e0ed63782d79522e
|
| 3 |
-
size 5131410656
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:750a4053abcfa6a0ca753ceee7f4de30a0f9648b20b55069312495f71f5f89a7
|
| 3 |
-
size 4997717216
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6d48f553b98c831ab0783835916a85b2a18b10d51669b1f41ac5ed1e6894e5f4
|
| 3 |
-
size 5942066400
|
|
|
|
|
|
|
|
|
|
|
|
ghost-7b-alpha-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fcb904ccc9f83c8f3afbe865504455646bf31ff2c7263d97e250b8e627e3b616
|
| 3 |
-
size 7695858912
|
|
|
|
|
|
|
|
|
|
|
|