Dnfs / Mangga-1-4B

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 23 2026

Introduction of Mangga-1-4B

Model Details of Mangga-1-4B

Model Gemma-3-4B Fine-tuned - Mango City Edition

This model is fine-tuned from unsloth/gemma-3-1b-it-unsloth-bnb-4bit-unsloth-bnb-4bit using the LoRA (Low-Rank Adaptation) method with a specific dataset focused on local knowledge (such as "Kota Mangga" - Indramayu, the Mango City).

This model was trained using Unsloth for significant memory and speed efficiency.

Repository Structure

This repository contains the model in two formats for flexibility:

├── config.json
├── model.safetensors
├── tokenizer.json
├── tokenizer_config.json
├── special_tokens_map.json
├── generation_config.json
└── adapter/                 # adapter LoRA
    ├── adapter_config.json
    ├── adapter_model.safetensors
    └── ...
How to Use
1. Using the Merged Model

This is the easiest way to use the model. You will be loading a ready-to-use merged model.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "Dnfs/Mangga-1-4B"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16, # Gunakan float16 untuk efisiensi
    device_map="auto"
)

# Contoh penggunaan
inputs = tokenizer("Siapakah bupati Indramayu saat ini?", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
2. Using the LoRA Adapter

If you want to apply the adapter to the base model manually.

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch

base_model_id = "unsloth/gemma-3-1b-it-unsloth-bnb-4bit"
adapter_id = "Dnfs/Mangga-1-4B"

# Load the base model
base_model = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    torch_dtype=torch.float16,
    device_map="auto"
)

# Load the tokenizer from this repo (as there might be new tokens)
tokenizer = AutoTokenizer.from_pretrained(adapter_id)

# Apply the adapter
model = PeftModel.from_pretrained(
    base_model,
    adapter_id,
    subfolder="adapter" # Don't forget the subfolder
)

# Example usage
inputs = tokenizer("Jelaskan tentang julukan Indramayu sebagai Kota Mangga.", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Model Details

Model Hierarchy:

  • Original Model: google/gemma-3-4b-it (Google Gemma-3-4B Instruct)
  • Unsloth Base Model: unsloth/gemma-3-1b-it-unsloth-bnb-4bit (Optimized version of the Google model)
  • Training Model: unsloth/gemma-3-1b-it-unsloth-bnb-4bit-unsloth-bnb-4bit (4-bit quantized version for fine-tuning)
  • Final Model: Dnfs/Mangga-1-4B (The fine-tuned model)

Specifications:

  • Method: LoRA (Low-Rank Adaptation) via Unsloth
  • Language: id (Indonesia)
  • Upload Precision: 16-bit
Lisensi

Apache 2.0

Runs of Dnfs Mangga-1-4B on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Mangga-1-4B huggingface.co Model

More Mangga-1-4B license Visit here:

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

Mangga-1-4B huggingface.co

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

Mangga-1-4B huggingface.co Url

https://huggingface.co/Dnfs/Mangga-1-4B

Dnfs Mangga-1-4B online free

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

Dnfs Mangga-1-4B online free url in huggingface.co:

https://huggingface.co/Dnfs/Mangga-1-4B

Mangga-1-4B install

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

Mangga-1-4B install url in huggingface.co:

https://huggingface.co/Dnfs/Mangga-1-4B

Url of Mangga-1-4B

Mangga-1-4B huggingface.co Url

Provider of Mangga-1-4B huggingface.co

Dnfs
ORGANIZATIONS

Other API from Dnfs

huggingface.co

Total runs: 24
Run Growth: 0
Growth Rate: 0.00%
Updated:March 18 2025
huggingface.co

Total runs: 8
Run Growth: 8
Growth Rate: 100.00%
Updated:April 13 2025
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:June 06 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 01 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 21 2025