GGUF
Portuguese
legal
civil-procedure
civil-code
abuso-de-direito
liberdade-sexual
ação-popular
ação-coletiva
conversational
Instructions to use VirtuoTuring/justina_clarus-24b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use VirtuoTuring/justina_clarus-24b-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 VirtuoTuring/justina_clarus-24b-gguf:F16 # Run inference directly in the terminal: llama cli -hf VirtuoTuring/justina_clarus-24b-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf VirtuoTuring/justina_clarus-24b-gguf:F16 # Run inference directly in the terminal: llama cli -hf VirtuoTuring/justina_clarus-24b-gguf:F16
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 VirtuoTuring/justina_clarus-24b-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf VirtuoTuring/justina_clarus-24b-gguf:F16
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 VirtuoTuring/justina_clarus-24b-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf VirtuoTuring/justina_clarus-24b-gguf:F16
Use Docker
docker model run hf.co/VirtuoTuring/justina_clarus-24b-gguf:F16
- LM Studio
- Jan
- Ollama
How to use VirtuoTuring/justina_clarus-24b-gguf with Ollama:
ollama run hf.co/VirtuoTuring/justina_clarus-24b-gguf:F16
- Unsloth Desktop
- Docker Model Runner
How to use VirtuoTuring/justina_clarus-24b-gguf with Docker Model Runner:
docker model run hf.co/VirtuoTuring/justina_clarus-24b-gguf:F16
- Lemonade
How to use VirtuoTuring/justina_clarus-24b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VirtuoTuring/justina_clarus-24b-gguf:F16
Run and chat with the model
lemonade run user.justina_clarus-24b-gguf-F16
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,194 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: virtuo
|
| 4 |
-
license_link: https://justina.cloud/licenses_models/virtuo/virtuo_1_0.txt
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: virtuo
|
| 4 |
+
license_link: https://justina.cloud/licenses_models/virtuo/virtuo_1_0.txt
|
| 5 |
+
datasets:
|
| 6 |
+
- VirtuoTuring/justina_clarus
|
| 7 |
+
language:
|
| 8 |
+
- pt
|
| 9 |
+
base_model:
|
| 10 |
+
- VirtuoTuring/Chat_Noir
|
| 11 |
+
tags:
|
| 12 |
+
- legal
|
| 13 |
+
- civil-procedure
|
| 14 |
+
- civil-code
|
| 15 |
+
- abuso-de-direito
|
| 16 |
+
- liberdade-sexual
|
| 17 |
+
- ação-popular
|
| 18 |
+
- ação-coletiva
|
| 19 |
+
- gguf
|
| 20 |
+
---
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# Justina Clarus 24B — GGUF
|
| 24 |
+
|
| 25 |
+
Modelo conversacional PT-PT focado em CPC e CC, com reforço intensivo em:
|
| 26 |
+
- abuso de direito,
|
| 27 |
+
- direito da família,
|
| 28 |
+
- direito de liberdade sexual,
|
| 29 |
+
- ações coletivas (subtipo popular).
|
| 30 |
+
|
| 31 |
+
Distribuição em **GGUF** para execução local com `llama.cpp`/`llama-cpp-python`.
|
| 32 |
+
|
| 33 |
+
## Origem
|
| 34 |
+
|
| 35 |
+
**Base:** Chat Noir — desenvolvido por Octávio Viana com Virtuo Turing – Artificial Intelligence, S.A.
|
| 36 |
+
Arquitetura: Mistral-24B com LoRA proprietárias. Corpus PT-PT técnico, jurídico e literário.
|
| 37 |
+
|
| 38 |
+
## Cobertura jurídica
|
| 39 |
+
|
| 40 |
+
- **CPC**: espécies de ações, processos, competência, recursos, caso julgado.
|
| 41 |
+
- **CC**: obrigações, responsabilidade civil, direitos de personalidade.
|
| 42 |
+
- Reforços: abuso de direito; família e menores; liberdade sexual; ações populares.
|
| 43 |
+
- Contexto alargado (seleção): CPP, CP, CRP, CEDH, RGPD (+ Lei 58/2019), Lei 112/2009, Lei 130/2015, LAV, Reg. (UE) 1215/2012, Reg. (UE) 2019/1111, Dir. 2004/25/CE, CVM 194/196.
|
| 44 |
+
|
| 45 |
+
## Dados e metodologia
|
| 46 |
+
|
| 47 |
+
Treino em **JSONL** com pares Q/A autossuficientes.
|
| 48 |
+
|
| 49 |
+
- `role`: "user" ou "assistant".
|
| 50 |
+
- `content`: texto simples em PT-PT. Sem cabeçalhos. Sem vírgulas finais.
|
| 51 |
+
- **Schema**
|
| 52 |
+
{ "messages": [ {"role":"user","content":"…"}, {"role":"assistant","content":"…"} ] }
|
| 53 |
+
|
| 54 |
+
**Exemplos**
|
| 55 |
+
{"messages":[{"role":"user","content":"Quais são as espécies fundamentais de ações no Direito Processual Civil segundo o artigo 10.º, n.º1 CPC?"},{"role":"assistant","content":"Segundo o artigo 10.º, n.º1 CPC, no esquema de Direito Processual Civil, há duas espécies fundamentais de ações."}]}
|
| 56 |
+
{"messages":[{"role":"user","content":"O que caracteriza a ação declarativa no Direito Processual Civil?"},{"role":"assistant","content":"A ação declarativa pode ainda ser, conforme o artigo 10.º, n.º2 e 3 CPC, de simples apreciação, de condenação ou constitutiva, sendo que em cada subespécie se pedem diferentes providências ao tribunal."}]}
|
| 57 |
+
|
| 58 |
+
**Treino jurídico adicional (síntese)**
|
| 59 |
+
Peças processuais iniciais e acórdãos das Relações (Guimarães, Porto, Coimbra, Lisboa, Évora) e STJ, convertidos em Q/A, checklists, testes binários, contraexemplos e “ruído controlado”.
|
| 60 |
+
|
| 61 |
+
## Design e limites
|
| 62 |
+
|
| 63 |
+
- Respostas curtas e precisas; baixa latência local.
|
| 64 |
+
- Janela de contexto ≈ 4k tokens.
|
| 65 |
+
- Quantizações GGUF típicas: Q4_K_S, Q5, Q8.
|
| 66 |
+
- Não otimizado para contexto longo (>8k).
|
| 67 |
+
|
| 68 |
+
## Utilização
|
| 69 |
+
|
| 70 |
+
### `llama.cpp`
|
| 71 |
+
./main -m justina_clarus-24b.Q4_K_S.gguf -n 512 -t 8 -ngl 35 --prompt "Pergunta: Indique as espécies de ações no art. 10.º, n.º 1 CPC.\nResposta:"
|
| 72 |
+
|
| 73 |
+
### `llama-cpp-python`
|
| 74 |
+
Recomendado: `llama_cpp_python==0.3.9`, `numpy==1.26.4`.
|
| 75 |
+
|
| 76 |
+
from llama_cpp import Llama
|
| 77 |
+
llm = Llama(model_path="justina_clarus-24b.Q4_K_S.gguf", n_ctx=4096, n_threads=8, n_gpu_layers=35)
|
| 78 |
+
out = llm("Pergunta: Quais são as espécies fundamentais de ações no art. 10.º, n.º 1 CPC?\nResposta:", max_tokens=400, temperature=0.2, top_p=0.9)
|
| 79 |
+
print(out["choices"][0]["text"].strip())
|
| 80 |
+
|
| 81 |
+
## Boas práticas
|
| 82 |
+
|
| 83 |
+
- Citar artigos e números quando relevante.
|
| 84 |
+
- Validar com fontes oficiais e revisão humana em peças processuais.
|
| 85 |
+
|
| 86 |
+
## Avaliação
|
| 87 |
+
|
| 88 |
+
Sem métricas públicas nesta versão. Uso alvo: Q/A jurídico, síntese curta, esboços.
|
| 89 |
+
|
| 90 |
+
## Limitações
|
| 91 |
+
|
| 92 |
+
- Não substitui profissionais forenses ou tribunais.
|
| 93 |
+
- Pode errar em regimes especiais ou alterações legislativas recentes.
|
| 94 |
+
|
| 95 |
+
## Licença
|
| 96 |
+
|
| 97 |
+
**Virtuo 1.0**. Uso, modificação e redistribuição, incluindo comercial, desde que se preservem avisos originais e referência a **Virtuo Turing – Artificial Intelligence, S.A.**.
|
| 98 |
+
|
| 99 |
+
## Créditos
|
| 100 |
+
|
| 101 |
+
Virtuo Turing – Artificial Intelligence, S.A. (Portugal) e Octávio Viana.
|
| 102 |
+
Base © Mistral AI (Apache-2.0).
|
| 103 |
+
Website: https://justina.cloud
|
| 104 |
+
|
| 105 |
+
## Citação sugerida
|
| 106 |
+
|
| 107 |
+
VirtuoTuring/justina_clarus-24b-gguf — Chat Noir PT-PT jurídico (CPC/CC; abuso de direito; família; liberdade sexual; ações populares). Virtuo Turing – Artificial Intelligence, S.A.
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
# Justina Clarus 24B — GGUF
|
| 111 |
+
|
| 112 |
+
PT-PT conversational model focused on the Portuguese Civil Procedure Code (CPC) and Civil Code (CC), with intensive subsets on:
|
| 113 |
+
- abuse of rights,
|
| 114 |
+
- family law,
|
| 115 |
+
- sexual freedom–related offences,
|
| 116 |
+
- collective actions of the “popular action” subtype.
|
| 117 |
+
|
| 118 |
+
Distributed as **GGUF** for local inference via `llama.cpp`/`llama-cpp-python`.
|
| 119 |
+
|
| 120 |
+
## Origin
|
| 121 |
+
|
| 122 |
+
**Base:** Chat Noir — developed by Octávio Viana with Virtuo Turing – Artificial Intelligence, S.A.
|
| 123 |
+
Architecture: Mistral-24B with proprietary LoRA adapters. Corpus authored in European Portuguese across technical, legal, and literary domains.
|
| 124 |
+
|
| 125 |
+
## Legal coverage
|
| 126 |
+
|
| 127 |
+
- **CPC**: types of actions, procedures, jurisdiction, appeals, res judicata.
|
| 128 |
+
- **CC**: obligations, tort, personality rights.
|
| 129 |
+
- Reinforcements: abuse of rights; family and minors; sexual freedom; popular actions.
|
| 130 |
+
- Wider context (selection): CPP, CP, CRP, ECHR, GDPR (+ Law 58/2019), Law 112/2009, Law 130/2015, LAV, Reg. (EU) 1215/2012, Reg. (EU) 2019/1111, Directive 2004/25/EC, CVM 194/196.
|
| 131 |
+
|
| 132 |
+
## Data and method
|
| 133 |
+
|
| 134 |
+
Training in **JSONL** using self-contained Q/A pairs.
|
| 135 |
+
|
| 136 |
+
- `role`: "user" or "assistant".
|
| 137 |
+
- `content`: plain PT-PT text. No headers. No trailing commas.
|
| 138 |
+
- **Schema**
|
| 139 |
+
{ "messages": [ {"role":"user","content":"…"}, {"role":"assistant","content":"…"} ] }
|
| 140 |
+
|
| 141 |
+
**Examples**
|
| 142 |
+
{"messages":[{"role":"user","content":"Quais são as espécies fundamentais de ações no Direito Processual Civil segundo o artigo 10.º, n.º1 CPC?"},{"role":"assistant","content":"Segundo o artigo 10.º, n.º1 CPC, no esquema de Direito Processual Civil, há duas espécies fundamentais de ações."}]}
|
| 143 |
+
{"messages":[{"role":"user","content":"O que caracteriza a ação declarativa no Direito Processual Civil?"},{"role":"assistant","content":"A ação declarativa pode ainda ser, conforme o artigo 10.º, n.º2 e 3 CPC, de simples apreciação, de condenação ou constitutiva, sendo que em cada subespécie se pedem diferentes providências ao tribunal."}]}
|
| 144 |
+
|
| 145 |
+
**Additional legal training (summary)**
|
| 146 |
+
Statements of claim and Portuguese appellate and Supreme Court judgments, converted into Q/A, checklists, binary tests, counterexamples, and “controlled noise”.
|
| 147 |
+
|
| 148 |
+
## Design and limits
|
| 149 |
+
|
| 150 |
+
- Short, precise answers; low latency on local hardware.
|
| 151 |
+
- Context window ≈ 4k tokens.
|
| 152 |
+
- Typical GGUF quantizations: Q4_K_S, Q5, Q8.
|
| 153 |
+
- Not tuned for long-context reasoning (>8k).
|
| 154 |
+
|
| 155 |
+
## Usage
|
| 156 |
+
|
| 157 |
+
### `llama.cpp`
|
| 158 |
+
./main -m justina_clarus-24b.Q4_K_S.gguf -n 512 -t 8 -ngl 35 --prompt "Pergunta: Indique as espécies de ações no art. 10.º, n.º 1 CPC.\nResposta:"
|
| 159 |
+
|
| 160 |
+
### `llama-cpp-python`
|
| 161 |
+
Recommended: `llama_cpp_python==0.3.9`, `numpy==1.26.4`.
|
| 162 |
+
|
| 163 |
+
from llama_cpp import Llama
|
| 164 |
+
llm = Llama(model_path="justina_clarus-24b.Q4_K_S.gguf", n_ctx=4096, n_threads=8, n_gpu_layers=35)
|
| 165 |
+
out = llm("Pergunta: Quais são as espécies fundamentais de ações no art. 10.º, n.º 1 CPC?\nResposta:", max_tokens=400, temperature=0.2, top_p=0.9)
|
| 166 |
+
print(out["choices"][0]["text"].strip())
|
| 167 |
+
|
| 168 |
+
## Good practice
|
| 169 |
+
|
| 170 |
+
- Cite article numbers when relevant.
|
| 171 |
+
- Validate outputs against official sources; require human review for filings.
|
| 172 |
+
|
| 173 |
+
## Evaluation
|
| 174 |
+
|
| 175 |
+
No public metrics in this card. Target use: legal Q/A, brief synthesis, drafting support.
|
| 176 |
+
|
| 177 |
+
## Limitations
|
| 178 |
+
|
| 179 |
+
- Not a substitute for legal professionals or courts.
|
| 180 |
+
- May miss special regimes or recent legislative changes.
|
| 181 |
+
|
| 182 |
+
## License
|
| 183 |
+
|
| 184 |
+
**Virtuo 1.0**. Permissive use, modification, and redistribution, including commercial, provided original notices are preserved and **Virtuo Turing – Artificial Intelligence, S.A.** is referenced.
|
| 185 |
+
|
| 186 |
+
## Credits
|
| 187 |
+
|
| 188 |
+
Virtuo Turing – Artificial Intelligence, S.A. (Portugal) and Octávio Viana.
|
| 189 |
+
Base © Mistral AI (Apache-2.0).
|
| 190 |
+
Website: https://justina.cloud
|
| 191 |
+
|
| 192 |
+
## Suggested citation
|
| 193 |
+
|
| 194 |
+
VirtuoTuring/justina_clarus-24b-gguf — Chat Noir PT-PT legal model (CPC/CC; abuse of rights; family; sexual freedom; popular actions). Virtuo Turing – Artificial Intelligence, S.A.
|