OpenThai 2.0 Legal ThaiLLM (Nemotron-3-Nano-30B-A3B) — IQ4_NL GGUF

🇹🇭 Thai Legal AI Model — IQ4_NL Quantized GGUF for llama.cpp

This repository contains the IQ4_NL quantized GGUF version of the OpenThai 2.0 Legal ThaiLLM, based on NVIDIA's Nemotron-3-Nano-30B-A3B architecture.

📊 Model Information

Property Value
Base Model iapp/openthai2.0-legal-thaillm-nemotron-3-nano-30b-a3b
Architecture Nemotron H (Mamba + Attention + MoE Hybrid)
Parameters ~30B total, ~3.5B active per token
Quantization IQ4_NL (Iterative Optimized 4-bit Non-Linear)
Bits-per-Weight 4.61 BPW
File Size 17 GB
Fallback Tensors 5 of 401 (specialized SSM/Mamba layers)

🔧 Quantization Details

  • Tool: llama.cpp llama-quantize
  • Source: F16 GGUF (60 GB, 16.00 BPW)
  • Quant Method: IQ4_NL — iterative optimized quantization with non-linear quantiles
  • Quality: Better perplexity than standard Q4_K_M due to iterative optimization
  • Special Note: 5 tensors used fallback quantization (expected for hybrid Mamba/MoE architecture)

💻 Running the Model

llama.cpp CLI

llama-cli -m "OpenThai 2.0 Legal ThaiLLM (Nemotron-3-Nano-30B-A3B)_IQ4_NL.gguf" \
  -n 1024 \
  -t 8 \
  -p "คำถามทางกฎหมายของคุณ..."

llama-server (OpenAI-compatible API)

llama-server -m "OpenThai 2.0 Legal ThaiLLM (Nemotron-3-Nano-30B-A3B)_IQ4_NL.gguf" \
  --host 0.0.0.0 \
  --port 8080 \
  --ctx-size 4096

Python (llama-cpp-python)

from llama_cpp import Llama

model = Llama.from_pretrained(
    repo_id="Naypa/OpenThai-2.0-Legal-ThaiLLM-Nemotron-3-Nano-30B-A3B-IQ4_NL-GGUF",
    filename="OpenThai 2.0 Legal ThaiLLM (Nemotron-3-Nano-30B-A3B)_IQ4_NL.gguf",
    n_ctx=4096,
    n_gpu_layers=-1,  # Offload all layers to GPU
)

output = model("คำถาม: กฎหมายไทยเกี่ยวกับ...", max_tokens=512)
print(output["choices"][0]["text"])

🖥️ Hardware Requirements

Component Minimum Recommended
VRAM 16 GB 24 GB (RTX 3090)
RAM 32 GB 64 GB
Storage 20 GB free 30 GB free

📝 License

This model inherits the license from the base model: Apache 2.0

🔗 Links

👤 Author

Quantized and shared by @Naypa


If you find this model useful, please ⭐ star the original repo and consider citing the Nemotron architecture paper.

Downloads last month
299
GGUF
Model size
32B params
Architecture
nemotron_h_moe
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

Model tree for Naypa/OpenThai-2.0-Legal-ThaiLLM-Nemotron-3-Nano-30B-A3B-IQ4_NL-GGUF