YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Solenoid 1.1

Fine-tuned legal LLM for OHADA jurisprudence and Niger fiscal law

Solenoid is a family of large language models fine-tuned by Nusoidal from Qwen2.5 architectures on Niger's legal corpora, in French (majority). It has the ability to provide answers related to OHADA business law, tax code, and administrative procedures.


Model Details

  • Base model: Qwen2.5-1.5B
  • Fine-tuning: LoRA (r=16, alpha=32) with ChatML prompt format
  • Quantization: Q4_K_M (941 MB GGUF)
  • Context window: 32,768 tokens
  • Languages: French (primary), legal terminology
  • License: Apache 2.0

Capabilities

Solenoid is specialized in:

  • OHADA uniform acts (commercial law, company law, securities)
  • Niger tax code and fiscal procedures
  • Business registration and regulatory compliance
  • Public procurement and administrative law
  • Labor law and social security (CNSS)

Benchmarks

428 questions across OHADA, tax, labor, procurement, banking, civil, digital, environment, and real-world scenarios.

Model OHADA Refs Niger Refs Citations Domain Score
Qwen2.5-1.5B (base) 0.2 0.8 0.2 1.3
Solenoid 1.1 0.7 1.1 1.7 3.5

Solenoid 1.1 outperforms Qwen2.5-1.5B (base) by 175% on domain relevance.

Solenoid scores 2.8x higher than the base model on domain-specific legal references. On OHADA questions specifically, the gap is even wider, with Solenoid consistently citing the correct uniform acts while the base model defaults to generic French law.

Benchmarked on RTX 5090 (NVIDIA Neptune), temperature 0.0, 256 max_tokens. Full code in benchmark_solenoid.py.


Prompt Format

Solenoid uses the ChatML format:

<|im_start|>system
Vous etes Solenoid, un assistant juridique specialise en droit OHADA.
<|im_end|>
<|im_start|>user
Quelles sont les etapes pour creer une SARL au Niger ?
<|im_end|>
<|im_start|>assistant

Files

File Description
Solenoid_1.1-Q4_K_M.gguf Model weights (GGUF Q4_K_M, 941 MB)
benchmark_solenoid.py Benchmark script (600 questions, GPU)
benchmark_dashboard.py Interactive HTML dashboard generator
benchmark_results/ Raw results + generated report + dashboard
LICENSE Apache 2.0

Access

Solenoid 1.1 Q4_K_M is open source under Apache 2.0. Download the GGUF file and use with any llama.cpp-compatible inference engine.

# Download
wget https://huggingface.co/Nusoidal/Solenoid_1.1/resolve/main/Solenoid_1.1-Q4_K_M.gguf

# Run with llama.cpp
./llama-cli -m Solenoid_1.1-Q4_K_M.gguf -p "Qu'est-ce que l'OHADA ?" -n 256

For commercial licensing or other variants (Q8_0, Solenoid 1.2): nusoidal@gmail.com


License

Apache License 2.0. See LICENSE.

Solenoid is a trademark of Nusoidal.

Downloads last month
-
GGUF
Model size
2B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support