artindnr / tea-4bit

huggingface.co
Total runs: 100
24-hour runs: 0
7-day runs: 90
30-day runs: 100
Model's Last Updated: August 08 2026
text-generation

Introduction of tea-4bit

Model Details of tea-4bit

🍵 Tea — 4-bit

https://64.media.tumblr.com/1ab2cfe03429ef47b5063c90df2c0a5a/3c1a235d6f992b74-7d/s500x750/aafa42b7949f3104f349e5508df5fa8b738d879a.gif

This repo contains a 4-bit precision version of artindnr/tea , a full fine-tune of microsoft/phi-4 for question answering and long, multi-turn assistant conversations, with fine-tuning focused on Farsi (Persian) conversational ability.

Unlike GGUF quants, this is a safetensors checkpoint quantized to 4-bit precision with Unsloth (bitsandbytes nf4 backend), meant to be loaded directly with 🤗 Transformers or Unsloth — not with llama.cpp.

Looking for GGUF quants for llama.cpp / Ollama / LM Studio instead? See artindnr/tea-gguf (F16, Q8_0, Q5_K_M, Q4_K_M).

Model Details
  • Base model: artindnr/tea (full fine-tune of microsoft/phi-4 , 14B parameters)
  • Quantized by: artindnr , using Unsloth
  • Format: safetensors (4-bit, bitsandbytes nf4)
  • License: MIT
  • Languages: Farsi (primary conversational focus), English, and general multilingual support
How to Use
Generation with 🤗 Transformers

The checkpoint is already stored in 4-bit, so it loads directly — no BitsAndBytesConfig needed on your end, device_map="auto" handles placement.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL_ID = "artindnr/tea-4bit"

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    device_map="auto",
)

USER_PROMPT = "تو کی هستی و اسمت چیه؟"

messages = [
    {"role": "user", "content": USER_PROMPT},
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=1024,
    temperature=0.7,
    do_sample=True,
)

print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Generation with Unsloth (faster inference/fine-tuning)
pip install unsloth
from unsloth import FastLanguageModel

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="artindnr/tea-4bit",
    max_seq_length=8192,
    load_in_4bit=True,
    dtype=None,  # auto-detect
)
FastLanguageModel.for_inference(model)

messages = [
    {"role": "user", "content": "تو کی هستی و اسمت چیه؟"},
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=1024,
    temperature=0.7,
    do_sample=True,
)

print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Unsloth also lets you use this checkpoint as a starting point for further QLoRA fine-tuning if you want to adapt tea further while keeping it in 4-bit.

Intended Use

Same as artindnr/tea : Farsi-first conversational assistance, question answering, and long multi-turn assistant deployments — this repo specifically targets lower-VRAM GPU inference and fine-tuning via Transformers/Unsloth, as an alternative to the GGUF quants for CPU/llama.cpp-based deployment.

Limitations
  • 4-bit quantization trades off some accuracy for memory footprint; expect some quality degradation versus the full-precision artindnr/tea , particularly on nuanced or long-context Farsi generation.
  • This checkpoint requires a CUDA GPU and bitsandbytes — it is not intended for CPU inference or llama.cpp; use artindnr/tea-gguf for that.
  • Inherits all limitations of the base artindnr/tea model and the underlying microsoft/phi-4 checkpoint, including possible hallucinated facts.
  • No formal safety fine-tuning beyond what is inherited from the base model has been applied; use appropriate safeguards in production settings.
License

This model is released under the MIT License , consistent with artindnr/tea and the base microsoft/phi-4 model.

Citation

If you use tea in your work, please cite:

@misc{tea,
  title  = {tea: A Farsi-Focused, Full Fine-tune of Phi-4 for QA and Long-form Assistance},
  author = {artindnr},
  year   = {2026},
  url    = {https://huggingface.co/artindnr/tea}
}
Acknowledgements

Built on top of artindnr/tea , itself a full fine-tune of microsoft/phi-4 . 4-bit quantization via Unsloth .

Runs of artindnr tea-4bit on huggingface.co

100
Total runs
0
24-hour runs
9
3-day runs
90
7-day runs
100
30-day runs

More Information About tea-4bit huggingface.co Model

More tea-4bit license Visit here:

https://choosealicense.com/licenses/mit

tea-4bit huggingface.co

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

artindnr tea-4bit online free

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

artindnr tea-4bit online free url in huggingface.co:

https://huggingface.co/artindnr/tea-4bit

tea-4bit install

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

tea-4bit install url in huggingface.co:

https://huggingface.co/artindnr/tea-4bit

Url of tea-4bit

tea-4bit huggingface.co Url

Provider of tea-4bit huggingface.co

artindnr
ORGANIZATIONS

Other API from artindnr

huggingface.co

Total runs: 1.5K
Run Growth: 1.5K
Growth Rate: 100.00%
Updated:August 06 2026
huggingface.co

Total runs: 850
Run Growth: 850
Growth Rate: 100.00%
Updated:August 14 2026
huggingface.co

Total runs: 675
Run Growth: 675
Growth Rate: 100.00%
Updated:August 08 2026
huggingface.co

Total runs: 358
Run Growth: 358
Growth Rate: 100.00%
Updated:August 08 2026
huggingface.co

Total runs: 333
Run Growth: 333
Growth Rate: 100.00%
Updated:August 07 2026
huggingface.co

Total runs: 309
Run Growth: 309
Growth Rate: 100.00%
Updated:August 08 2026
huggingface.co

Total runs: 299
Run Growth: 299
Growth Rate: 100.00%
Updated:August 08 2026
huggingface.co

Total runs: 230
Run Growth: 230
Growth Rate: 100.00%
Updated:September 06 2026
huggingface.co

Total runs: 228
Run Growth: 228
Growth Rate: 100.00%
Updated:September 06 2026
huggingface.co

Total runs: 228
Run Growth: 228
Growth Rate: 100.00%
Updated:September 06 2026
huggingface.co

Total runs: 195
Run Growth: 195
Growth Rate: 100.00%
Updated:August 07 2026
huggingface.co

Total runs: 19
Run Growth: -68
Growth Rate: -357.89%
Updated:August 10 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 10 2026