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
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 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:
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.