Instructions to use second-state/Triplex-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/Triplex-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/Triplex-GGUF", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Triplex-GGUF", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("second-state/Triplex-GGUF", trust_remote_code=True) - llama-cpp-python
How to use second-state/Triplex-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/Triplex-GGUF", filename="Triplex-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use second-state/Triplex-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/Triplex-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/Triplex-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/Triplex-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/Triplex-GGUF:Q4_K_M
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 second-state/Triplex-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/Triplex-GGUF:Q4_K_M
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 second-state/Triplex-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Triplex-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Triplex-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/Triplex-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/Triplex-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": "second-state/Triplex-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Triplex-GGUF:Q4_K_M
- SGLang
How to use second-state/Triplex-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 "second-state/Triplex-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": "second-state/Triplex-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 "second-state/Triplex-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": "second-state/Triplex-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/Triplex-GGUF with Ollama:
ollama run hf.co/second-state/Triplex-GGUF:Q4_K_M
- Unsloth Studio
How to use second-state/Triplex-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 second-state/Triplex-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 second-state/Triplex-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for second-state/Triplex-GGUF to start chatting
- Docker Model Runner
How to use second-state/Triplex-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Triplex-GGUF:Q4_K_M
- Lemonade
How to use second-state/Triplex-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Triplex-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Triplex-GGUF-Q4_K_M
List all available models
lemonade list
Update models
Browse files- .gitattributes +13 -0
- Triplex-Q2_K.gguf +3 -0
- Triplex-Q3_K_L.gguf +3 -0
- Triplex-Q3_K_M.gguf +3 -0
- Triplex-Q3_K_S.gguf +3 -0
- Triplex-Q4_0.gguf +3 -0
- Triplex-Q4_K_M.gguf +3 -0
- Triplex-Q4_K_S.gguf +3 -0
- Triplex-Q5_0.gguf +3 -0
- Triplex-Q5_K_M.gguf +3 -0
- Triplex-Q5_K_S.gguf +3 -0
- Triplex-Q6_K.gguf +3 -0
- Triplex-Q8_0.gguf +3 -0
- Triplex-f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,16 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Triplex-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Triplex-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Triplex-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Triplex-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Triplex-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Triplex-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Triplex-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Triplex-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Triplex-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Triplex-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Triplex-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Triplex-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Triplex-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
Triplex-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed4d25d3241b0968598c618e5d25066aaf3ba1d5ca96632e03bc57a63e869c8a
|
| 3 |
+
size 1416204000
|
Triplex-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a142f62e9ba113ff339fc47b2d242b241d23b53fb2c6f548d0fe4b5b5e2ff14
|
| 3 |
+
size 2087597280
|
Triplex-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb17b52d1c61574f01cec227c5d71808d7cf56b7718e6dbebc3620965b59a216
|
| 3 |
+
size 1955476704
|
Triplex-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a109a3c8f25bfe4f3e06a096e39f2a4b9761a2b85460ef8a57a57e8895bdde8
|
| 3 |
+
size 1681798368
|
Triplex-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e051ec654f6215e2f05f9415e3a52c0a7c2f692c7d0858816b272a526ba3207b
|
| 3 |
+
size 2176176864
|
Triplex-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eca87a3c9bdf34826176dff87cffceae6259779d93e470351380db3c12d70c31
|
| 3 |
+
size 2393232096
|
Triplex-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1d7b971ddc151098975bdb62d66c22f06bb7a8b6bac56d0f991812ee8612cce
|
| 3 |
+
size 2188759776
|
Triplex-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:026dcda1888e21bce510a90706a27b55756d0fc07a42f58985c99cac64dcd99b
|
| 3 |
+
size 2641474272
|
Triplex-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0d2dbc2997d434143ce78836db1478965bb1cd0dbb9d5df90645d4c6a358535
|
| 3 |
+
size 2815275744
|
Triplex-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06cb3cde3d2f38b2725a7953967f25366a44ab36f14e78a13f21dfb501a7724e
|
| 3 |
+
size 2641474272
|
Triplex-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a79b00a1b6667c9bceba70a3e558e7c1839d03e286d569423984274219fc2e6
|
| 3 |
+
size 3135852768
|
Triplex-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8036b4c60d566be6776a19c889f85c6f9e4665063a0653917d2002a1e721d63f
|
| 3 |
+
size 4061222112
|
Triplex-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1217924a35420e41c7ed8798202cfba64f662fcc00ff4f48e164792e545bed1a
|
| 3 |
+
size 7643296992
|