Text Classification
Transformers
GGUF
English
guardrails
safety
roberta
education
code
cs-education
llm-safety
academic-integrity
feature-extraction
Instructions to use mradermacher/PromptShield-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/PromptShield-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mradermacher/PromptShield-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/PromptShield-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/PromptShield-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 mradermacher/PromptShield-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/PromptShield-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mradermacher/PromptShield-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/PromptShield-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 mradermacher/PromptShield-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/PromptShield-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 mradermacher/PromptShield-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/PromptShield-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/PromptShield-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/PromptShield-GGUF with Ollama:
ollama run hf.co/mradermacher/PromptShield-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use mradermacher/PromptShield-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/PromptShield-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/PromptShield-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/PromptShield-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.PromptShield-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
uploaded from leia
Browse files- .gitattributes +12 -0
- PromptShield.IQ4_XS.gguf +3 -0
- PromptShield.Q2_K.gguf +3 -0
- PromptShield.Q3_K_L.gguf +3 -0
- PromptShield.Q3_K_M.gguf +3 -0
- PromptShield.Q3_K_S.gguf +3 -0
- PromptShield.Q4_K_M.gguf +3 -0
- PromptShield.Q4_K_S.gguf +3 -0
- PromptShield.Q5_K_M.gguf +3 -0
- PromptShield.Q5_K_S.gguf +3 -0
- PromptShield.Q6_K.gguf +3 -0
- PromptShield.Q8_0.gguf +3 -0
- PromptShield.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ 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 |
+
PromptShield.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
PromptShield.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
PromptShield.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
PromptShield.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
PromptShield.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
PromptShield.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
PromptShield.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
PromptShield.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
PromptShield.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
PromptShield.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
PromptShield.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
PromptShield.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
PromptShield.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d6c43519c3d47dfdfbb388ecacd75a0ad9f25f2dc1641ebb87348308a76ed19
|
| 3 |
+
size 81316160
|
PromptShield.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:350f5f1f000d56f7cd283d20bc52544f204df1ca7805ca7665be43ec21ef157f
|
| 3 |
+
size 67887968
|
PromptShield.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cf363dd7cd62ba8e2c6c743c37ef463102f671f541baf691dbcff85cbf0602c
|
| 3 |
+
size 83209792
|
PromptShield.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e301f7641ee7eaf0fded6b124b0d4348aa4559247248dc40d2790f05f0877df1
|
| 3 |
+
size 78048832
|
PromptShield.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1cef361fadc24c8679052c1009d72ca2f7c131f9833ebddb03ad8478aea0256
|
| 3 |
+
size 72261184
|
PromptShield.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:966c071ccf0f46fbe4b97b2a5ab2299af74b95945728ad54d92efda191208798
|
| 3 |
+
size 88182144
|
PromptShield.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:317e1bc14cc38d16bc8a3d5d11ea857e2d99995c83851f032bbe577b161593a1
|
| 3 |
+
size 84210048
|
PromptShield.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c57fdd9f0f76b6bcb331ff5381c0439709ea545473673a513aece29636db91a4
|
| 3 |
+
size 96661152
|
PromptShield.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef8ce4e189f605b35571b04d6df01a2337a3a15b68007b84b370ffe5018e4260
|
| 3 |
+
size 94311072
|
PromptShield.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84cf949e10928a56dab199363063bb77c05f5dd7cdb582b340e28b45f3df6a14
|
| 3 |
+
size 105670112
|
PromptShield.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb3042c55242a4b0c5e087fe3ab48aad7760304a6044313369a153fab8f03055
|
| 3 |
+
size 135732896
|
PromptShield.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:515b7b2e8c54141c5a3df278f1e652b20768e40b423ab09943df60fb2095fc33
|
| 3 |
+
size 252105024
|