Spaces:
Sleeping
Sleeping
CharlieBonito commited on
Commit Β·
203ea5b
1
Parent(s): af4426f
Update Space to ClarityGuard v2
Browse files
README.md
CHANGED
|
@@ -23,6 +23,31 @@ models:
|
|
| 23 |
|
| 24 |
ClarityGuard helps neurodivergent individuals decode ambiguous workplace and personal messages by analyzing message structureβnot the user's ability to understand.
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
## π― Problem
|
| 27 |
|
| 28 |
Neurodivergent people (autistic, ADHD, dyslexic) often struggle with:
|
|
@@ -54,24 +79,25 @@ The model then generates:
|
|
| 54 |
## ποΈ Architecture
|
| 55 |
|
| 56 |
```
|
| 57 |
-
User Message β Jina Embeddings (RAG) β Gemma 4
|
| 58 |
β
|
| 59 |
Knowledge Base (Chatty System)
|
| 60 |
```
|
| 61 |
|
| 62 |
### Components:
|
| 63 |
-
- **Fine-tuned Gemma 4 E4B** (Unsloth) β 7.
|
| 64 |
- **Jina Embeddings v3** β Semantic search over knowledge base
|
| 65 |
- **RAG Documents** β Chatty 231051 framework + manipulation awareness content
|
| 66 |
-
- **
|
| 67 |
|
| 68 |
## π Technical Details
|
| 69 |
|
| 70 |
### Model Training
|
| 71 |
-
- Base: Gemma 4 E4B
|
| 72 |
- Fine-tuning: Unsloth Studio
|
|
|
|
| 73 |
- Quantization: Q4_K_M for deployment
|
| 74 |
-
- Multimodal support: mmproj for vision
|
| 75 |
|
| 76 |
### RAG System
|
| 77 |
- Embeddings: Jina v3 (1024 dimensions)
|
|
@@ -135,4 +161,4 @@ Apache 2.0
|
|
| 135 |
|
| 136 |
---
|
| 137 |
|
| 138 |
-
**Built with β€οΈ for the neurodivergent community**
|
|
|
|
| 23 |
|
| 24 |
ClarityGuard helps neurodivergent individuals decode ambiguous workplace and personal messages by analyzing message structureβnot the user's ability to understand.
|
| 25 |
|
| 26 |
+
## Active Model
|
| 27 |
+
|
| 28 |
+
| Property | Value |
|
| 29 |
+
|----------|-------|
|
| 30 |
+
| Model repo | `CharlieBonito/clarity-guard-gemma4-7b` |
|
| 31 |
+
| Active version | ClarityGuard v2 |
|
| 32 |
+
| Training checkpoint | 750 |
|
| 33 |
+
| Base model | Unsloth Gemma 4 E4B IT BNB 4-bit |
|
| 34 |
+
| Architecture | Gemma 4 |
|
| 35 |
+
| Parameters | 7.52B |
|
| 36 |
+
| Quantization | GGUF / Q4_K_M |
|
| 37 |
+
| Model context metadata | 131072 tokens |
|
| 38 |
+
| Space deployed context | 12288 tokens |
|
| 39 |
+
| Multimodal | Yes, via `mmproj-ClarityGuard-v2.gguf` |
|
| 40 |
+
|
| 41 |
+
Active production files:
|
| 42 |
+
|
| 43 |
+
- `ClarityGuard-v2.gguf` β main model
|
| 44 |
+
- `mmproj-ClarityGuard-v2.gguf` β multimodal projector
|
| 45 |
+
|
| 46 |
+
Deprecated checkpoint-375 files are not the active deployment artifacts:
|
| 47 |
+
|
| 48 |
+
- `Checkpoint-375-Ollama-Clean-7.5B-Q4_K_M.gguf`
|
| 49 |
+
- `mmproj-Checkpoint-375-Ollama-Clean-BF16.gguf`
|
| 50 |
+
|
| 51 |
## π― Problem
|
| 52 |
|
| 53 |
Neurodivergent people (autistic, ADHD, dyslexic) often struggle with:
|
|
|
|
| 79 |
## ποΈ Architecture
|
| 80 |
|
| 81 |
```
|
| 82 |
+
User Message β Jina Embeddings (RAG) β ClarityGuard v2 / Gemma 4 E4B IT β Structured Analysis
|
| 83 |
β
|
| 84 |
Knowledge Base (Chatty System)
|
| 85 |
```
|
| 86 |
|
| 87 |
### Components:
|
| 88 |
+
- **ClarityGuard v2 / Fine-tuned Gemma 4 E4B IT** (Unsloth) β 7.52B parameters, Q4_K_M quantization, checkpoint 750
|
| 89 |
- **Jina Embeddings v3** β Semantic search over knowledge base
|
| 90 |
- **RAG Documents** β Chatty 231051 framework + manipulation awareness content
|
| 91 |
+
- **Hugging Face GPU Space** β CUDA-accelerated llama.cpp inference
|
| 92 |
|
| 93 |
## π Technical Details
|
| 94 |
|
| 95 |
### Model Training
|
| 96 |
+
- Base: Unsloth Gemma 4 E4B IT BNB 4-bit
|
| 97 |
- Fine-tuning: Unsloth Studio
|
| 98 |
+
- Active checkpoint: 750
|
| 99 |
- Quantization: Q4_K_M for deployment
|
| 100 |
+
- Multimodal support: `mmproj-ClarityGuard-v2.gguf` for vision/audio projector support
|
| 101 |
|
| 102 |
### RAG System
|
| 103 |
- Embeddings: Jina v3 (1024 dimensions)
|
|
|
|
| 161 |
|
| 162 |
---
|
| 163 |
|
| 164 |
+
**Built with β€οΈ for the neurodivergent community**
|
SETUP.md
CHANGED
|
@@ -38,14 +38,14 @@ api = HfApi()
|
|
| 38 |
api.create_repo("CharlieBonito/clarity-guard-gemma4-7b", repo_type="model", exist_ok=True)
|
| 39 |
EOF
|
| 40 |
|
| 41 |
-
# Upload model files (this will take ~30-60 minutes for 5GB)
|
| 42 |
huggingface-cli upload CharlieBonito/clarity-guard-gemma4-7b \
|
| 43 |
-
/home/charlie/charlielinux/
|
| 44 |
-
|
| 45 |
|
| 46 |
huggingface-cli upload CharlieBonito/clarity-guard-gemma4-7b \
|
| 47 |
-
/home/charlie/charlielinux/
|
| 48 |
-
mmproj-
|
| 49 |
```
|
| 50 |
|
| 51 |
### Step 4: Enable ZeroGPU
|
|
@@ -62,7 +62,7 @@ Gradio Interface
|
|
| 62 |
β
|
| 63 |
ClarityGuard Prompt + RAG Context
|
| 64 |
β
|
| 65 |
-
Gemma 4
|
| 66 |
β
|
| 67 |
Structured Analysis (C.F.R.V.A.)
|
| 68 |
β
|
|
@@ -74,4 +74,4 @@ User Response
|
|
| 74 |
- Digital Equity & Inclusivity ($10,000)
|
| 75 |
- Safety & Trust ($10,000)
|
| 76 |
- Unsloth Track ($10,000)
|
| 77 |
-
- llama.cpp Track ($10,000)
|
|
|
|
| 38 |
api.create_repo("CharlieBonito/clarity-guard-gemma4-7b", repo_type="model", exist_ok=True)
|
| 39 |
EOF
|
| 40 |
|
| 41 |
+
# Upload active ClarityGuard v2 model files (this will take ~30-60 minutes for 5GB)
|
| 42 |
huggingface-cli upload CharlieBonito/clarity-guard-gemma4-7b \
|
| 43 |
+
/home/charlie/charlielinux/finalversion/models/ClarityGuard-v2.gguf \
|
| 44 |
+
ClarityGuard-v2.gguf
|
| 45 |
|
| 46 |
huggingface-cli upload CharlieBonito/clarity-guard-gemma4-7b \
|
| 47 |
+
/home/charlie/charlielinux/finalversion/models/mmproj-ClarityGuard-v2.gguf \
|
| 48 |
+
mmproj-ClarityGuard-v2.gguf
|
| 49 |
```
|
| 50 |
|
| 51 |
### Step 4: Enable ZeroGPU
|
|
|
|
| 62 |
β
|
| 63 |
ClarityGuard Prompt + RAG Context
|
| 64 |
β
|
| 65 |
+
ClarityGuard v2 / Gemma 4 E4B IT checkpoint 750 (GPU Space)
|
| 66 |
β
|
| 67 |
Structured Analysis (C.F.R.V.A.)
|
| 68 |
β
|
|
|
|
| 74 |
- Digital Equity & Inclusivity ($10,000)
|
| 75 |
- Safety & Trust ($10,000)
|
| 76 |
- Unsloth Track ($10,000)
|
| 77 |
+
- llama.cpp Track ($10,000)
|
app.py
CHANGED
|
@@ -46,7 +46,7 @@ RAG_DOCS = [
|
|
| 46 |
]
|
| 47 |
|
| 48 |
CLARITYGUARD_SYSTEM_PROMPT = """CLARITYGUARD ASSISTANT β NEURO-INCLUSIVE EDITION v4.7
|
| 49 |
-
Tuned for Gemma 4
|
| 50 |
Based on C.F.R.V.A., created by Carlos Lengemann (2026) β CC BY 4.0
|
| 51 |
|
| 52 |
Language policy (non-negotiable): These instructions are written in English for clarity for builders. Your replies to the user must always be in the same language the user uses in their current message (including step titles, examples, and suggested wording). If the user mixes languages, mirror the language of their question / framing (the part where they ask for help), not the quoted third-party text. Never concatenate words. Always write with correct spacing and normal punctuation.
|
|
@@ -178,7 +178,7 @@ Spacing Rule (all modes): Never concatenate words. Use correct spacing and stand
|
|
| 178 |
|
| 179 |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 180 |
Version: ClarityGuard v4.7 β Structural / Neuro-inclusive
|
| 181 |
-
Stack: Gemma 4
|
| 182 |
Framework: C.F.R.V.A. (Lengemann, 2026) | Input Triage | Operational Pragmatics | Universality of Ambiguity
|
| 183 |
Attribution: Based on C.F.R.V.A., created by Carlos Lengemann (2026). Licensed CC BY 4.0.
|
| 184 |
https://creativecommons.org/licenses/by/4.0/deed.es"""
|
|
|
|
| 46 |
]
|
| 47 |
|
| 48 |
CLARITYGUARD_SYSTEM_PROMPT = """CLARITYGUARD ASSISTANT β NEURO-INCLUSIVE EDITION v4.7
|
| 49 |
+
Tuned for ClarityGuard v2 / Gemma 4 E4B IT checkpoint 750 | Dify + Jina RAG
|
| 50 |
Based on C.F.R.V.A., created by Carlos Lengemann (2026) β CC BY 4.0
|
| 51 |
|
| 52 |
Language policy (non-negotiable): These instructions are written in English for clarity for builders. Your replies to the user must always be in the same language the user uses in their current message (including step titles, examples, and suggested wording). If the user mixes languages, mirror the language of their question / framing (the part where they ask for help), not the quoted third-party text. Never concatenate words. Always write with correct spacing and normal punctuation.
|
|
|
|
| 178 |
|
| 179 |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 180 |
Version: ClarityGuard v4.7 β Structural / Neuro-inclusive
|
| 181 |
+
Stack: ClarityGuard v2 / Gemma 4 E4B IT checkpoint 750 | Dify | Jina RAG
|
| 182 |
Framework: C.F.R.V.A. (Lengemann, 2026) | Input Triage | Operational Pragmatics | Universality of Ambiguity
|
| 183 |
Attribution: Based on C.F.R.V.A., created by Carlos Lengemann (2026). Licensed CC BY 4.0.
|
| 184 |
https://creativecommons.org/licenses/by/4.0/deed.es"""
|