Instructions to use tensorblock/SAM-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/SAM-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/SAM-GGUF", filename="SAM-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/SAM-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/SAM-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/SAM-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/SAM-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/SAM-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/SAM-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/SAM-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/SAM-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/SAM-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/SAM-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/SAM-GGUF with Ollama:
ollama run hf.co/tensorblock/SAM-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/SAM-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/SAM-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/SAM-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/SAM-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/SAM-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/SAM-GGUF:Q2_K
- Lemonade
How to use tensorblock/SAM-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/SAM-GGUF:Q2_K
Run and chat with the model
lemonade run user.SAM-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- SAM-Q3_K_L.gguf +0 -3
- SAM-Q3_K_S.gguf +0 -3
- SAM-Q4_0.gguf +0 -3
- SAM-Q4_K_M.gguf +0 -3
- SAM-Q4_K_S.gguf +0 -3
- SAM-Q5_0.gguf +0 -3
- SAM-Q5_K_M.gguf +0 -3
- SAM-Q5_K_S.gguf +0 -3
- SAM-Q6_K.gguf +0 -3
- SAM-Q8_0.gguf +0 -3
SAM-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f20a7034bc7da5558b81a4e4bf241992e35c77dbe7031efcdb39de90753c45e0
|
| 3 |
-
size 3822024768
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f3840afe1321bf6697ab72eb4cbaa3ffa43908e347fdca9038623b8e33a71729
|
| 3 |
-
size 3164567616
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:60cb3d551dee75aa572d494424752d43ff27cf4a2146af82df2623586b8f5e9f
|
| 3 |
-
size 4108916800
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:960279889458715cd807442c03fd4c79c75e80a54b2727d056381885e4a2ed0f
|
| 3 |
-
size 4368439360
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:34c18d9e6315458aeabad6a2d6cb7ee13337214c5b81651b1f1d8625c6220dbe
|
| 3 |
-
size 4140374080
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1c03a3f91ef0636572c27a87273c275b4dc6f8c3b57fdcdeb948b6987db18075
|
| 3 |
-
size 4997716032
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bc14dec691db5882293ad7f09b371a948df3fa5c67fe67aa90b4890f8c5c8d6e
|
| 3 |
-
size 5131409472
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:543f493e71eee5dd4020134341ba962f73f84a0bae7162451dd5c4108833bcd2
|
| 3 |
-
size 4997716032
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b607b2b63cb46cf2285806d83f9d93a909b7e1b0189bc09a16d740edb10804e5
|
| 3 |
-
size 5942065216
|
|
|
|
|
|
|
|
|
|
|
|
SAM-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b901766bc9f9c3931f190afde898dec81fcf165fd1ac9b3b2ca5fbbd1647995e
|
| 3 |
-
size 7695857728
|
|
|
|
|
|
|
|
|
|
|
|