Instructions to use tensorblock/PowerLM-3b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/PowerLM-3b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/PowerLM-3b-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/PowerLM-3b-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/PowerLM-3b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/PowerLM-3b-GGUF", filename="PowerLM-3b-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 tensorblock/PowerLM-3b-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/PowerLM-3b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/PowerLM-3b-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/PowerLM-3b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/PowerLM-3b-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/PowerLM-3b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/PowerLM-3b-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/PowerLM-3b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/PowerLM-3b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/PowerLM-3b-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/PowerLM-3b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/PowerLM-3b-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/PowerLM-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/PowerLM-3b-GGUF:Q2_K
- SGLang
How to use tensorblock/PowerLM-3b-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/PowerLM-3b-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/PowerLM-3b-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/PowerLM-3b-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/PowerLM-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/PowerLM-3b-GGUF with Ollama:
ollama run hf.co/tensorblock/PowerLM-3b-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/PowerLM-3b-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/PowerLM-3b-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/PowerLM-3b-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/PowerLM-3b-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/PowerLM-3b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/PowerLM-3b-GGUF:Q2_K
- Lemonade
How to use tensorblock/PowerLM-3b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/PowerLM-3b-GGUF:Q2_K
Run and chat with the model
lemonade run user.PowerLM-3b-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- PowerLM-3b-Q3_K_L.gguf +0 -3
- PowerLM-3b-Q3_K_M.gguf +0 -3
- PowerLM-3b-Q3_K_S.gguf +0 -3
- PowerLM-3b-Q4_0.gguf +0 -3
- PowerLM-3b-Q4_K_M.gguf +0 -3
- PowerLM-3b-Q4_K_S.gguf +0 -3
- PowerLM-3b-Q5_0.gguf +0 -3
- PowerLM-3b-Q5_K_M.gguf +0 -3
- PowerLM-3b-Q5_K_S.gguf +0 -3
- PowerLM-3b-Q6_K.gguf +0 -3
- PowerLM-3b-Q8_0.gguf +0 -3
PowerLM-3b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:83c86debb9f9aa21703927b626cc8af18015833d15fdb594e0b2659ea07bf986
|
| 3 |
-
size 1888464576
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d4882aa310b4b7a5ba38af2f64e6fd1d1110ef4c94253f79490832b78e3af560
|
| 3 |
-
size 1735847616
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4511e576f19fd10d1955f6e95e7aedeb6dcb11f0d4b3cfdd6c2d5db5ba55af6d
|
| 3 |
-
size 1560006336
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:35c89b0b55dc85d31a2464bab4a926c92762aa81bb7012cb4a6eccba6d3141d3
|
| 3 |
-
size 2011221696
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:34dd56c88a04c8516e81f343617e0223f635f5943fb3fbb57d9158aebccdf125
|
| 3 |
-
size 2148079296
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2e7df7a3d1d09dcb086fa92ac26b64973b2cde8eeadf687dc80856e504703a7a
|
| 3 |
-
size 2027146944
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:91e8c43179f58f0fb76ede5904096cf58623eb3373c76129769e6ae3877cbc82
|
| 3 |
-
size 2435894976
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ebf146b69e8600683e9dc3158b74845b8eeeed0e8ef5aae5e405c21fa15a1977
|
| 3 |
-
size 2506397376
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8ce967c4906a31afb850ed750bf483f6069d64743043bb37cbc66485158c4a39
|
| 3 |
-
size 2435894976
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:093fbf0e1964c934694e0a46e509f3345c258f7f7b54bfb14c6886dd0f705187
|
| 3 |
-
size 2887110336
|
|
|
|
|
|
|
|
|
|
|
|
PowerLM-3b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a8ba210f9b1c7267aa59dd9908896865bcb81299b74b615bc0e03fdbfeca8ef4
|
| 3 |
-
size 3737341632
|
|
|
|
|
|
|
|
|
|
|
|