DJLougen / granite4-tax

huggingface.co
Total runs: 12
24-hour runs: 0
7-day runs: 2
30-day runs: 4
Model's Last Updated: January 31 2026
text-generation

Introduction of granite4-tax

Model Details of granite4-tax

Granite 4 Tax

A fine-tuned version of IBM Granite 4.0 Tiny Preview specialized for U.S. tax law reasoning with IRC citation support.

Model Details
  • Base model: ibm-granite/granite-4.0-tiny-preview
  • Architecture: GraniteMoeHybridForCausalLM (Mamba + Attention hybrid, MoE with 62 experts, 6 active per token)
  • Hidden size: 1536
  • Layers: 40 (36 Mamba + 4 Attention)
  • Context length: 131,072 tokens
  • Precision: bfloat16
Training

Fine-tuned using Unsloth with LoRA (rank=16, alpha=16) on synthetic U.S. tax law Q&A data covering:

  • Individual taxation
  • Business entity taxation
  • Estate and gift tax
  • International tax (CFCs, GILTI, FDII)
  • Tax procedure and compliance

LoRA target modules: q_proj, k_proj, v_proj, o_proj, in_proj, out_proj

The model was trained using SFT (Supervised Fine-Tuning) with structured reasoning in IRAC format (Issue, Rule, Application, Conclusion) and IRC citation grounding.

Usage
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "DJLougen/granite4-tax"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")

messages = [
    {"role": "system", "content": "You are a tax law assistant. Provide accurate analysis with IRC citations."},
    {"role": "user", "content": "What are the requirements for a corporation to elect S corporation status under IRC § 1362?"}
]

input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
output = model.generate(input_ids, max_new_tokens=512)
print(tokenizer.decode(output[0][input_ids.shape[-1]:], skip_special_tokens=True))
  • The models were fine-tuned and evaluated using a hybrid RAG pipeline with rule-based section forcing, code-computed tax calculations, disambiguation chunks for complex statutes, and an agentic self-correction loop. Evaluated on complex tax scenarios including SSTB phase-outs, passive loss exceptions, and nonqualified use proration.
Limitations
  • Trained on synthetic data; not a substitute for professional tax advice
  • Coverage is focused on U.S. federal tax law

Runs of DJLougen granite4-tax on huggingface.co

12
Total runs
0
24-hour runs
0
3-day runs
2
7-day runs
4
30-day runs

More Information About granite4-tax huggingface.co Model

More granite4-tax license Visit here:

https://choosealicense.com/licenses/apache-2.0

granite4-tax huggingface.co

granite4-tax huggingface.co is an AI model on huggingface.co that provides granite4-tax's model effect (), which can be used instantly with this DJLougen granite4-tax model. huggingface.co supports a free trial of the granite4-tax model, and also provides paid use of the granite4-tax. Support call granite4-tax model through api, including Node.js, Python, http.

granite4-tax huggingface.co Url

https://huggingface.co/DJLougen/granite4-tax

DJLougen granite4-tax online free

granite4-tax huggingface.co is an online trial and call api platform, which integrates granite4-tax's modeling effects, including api services, and provides a free online trial of granite4-tax, you can try granite4-tax online for free by clicking the link below.

DJLougen granite4-tax online free url in huggingface.co:

https://huggingface.co/DJLougen/granite4-tax

granite4-tax install

granite4-tax is an open source model from GitHub that offers a free installation service, and any user can find granite4-tax on GitHub to install. At the same time, huggingface.co provides the effect of granite4-tax install, users can directly use granite4-tax installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

granite4-tax install url in huggingface.co:

https://huggingface.co/DJLougen/granite4-tax

Url of granite4-tax

granite4-tax huggingface.co Url

Provider of granite4-tax huggingface.co

DJLougen
ORGANIZATIONS

Other API from DJLougen

huggingface.co

Total runs: 76
Run Growth: -874
Growth Rate: -1150.00%
Updated:April 10 2026
huggingface.co

Total runs: 14
Run Growth: 14
Growth Rate: 100.00%
Updated:September 18 2026
huggingface.co

Total runs: 11
Run Growth: -612
Growth Rate: -5563.64%
Updated:April 10 2026
huggingface.co

Total runs: 9
Run Growth: -634
Growth Rate: -7044.44%
Updated:April 10 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 05 2026