JacobLinCool / gemma-3n-E4B-transcribe-zh-tw-1

huggingface.co
Total runs: 17
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 29 2025

Introduction of gemma-3n-E4B-transcribe-zh-tw-1

Model Details of gemma-3n-E4B-transcribe-zh-tw-1

Model Card for gemma-3n-E4B-transcribe-zh-tw-1

This model is a fine-tuned version of google/gemma-3n-E4B-it . It has been trained using TRL .

Quick start
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoProcessor

device = "cuda" if torch.cuda.is_available() else "cpu"

processor = AutoProcessor.from_pretrained("google/gemma-3n-E4B-it", device_map="auto")
base_model = AutoModelForCausalLM.from_pretrained("google/gemma-3n-E4B-it")
model = PeftModel.from_pretrained(
    base_model, "JacobLinCool/gemma-3n-E4B-transcribe-zh-tw-1"
).to(device)


def trascribe(model, processor, audio):
    messages = [
        {
            "role": "system",
            "content": [
                {
                    "type": "text",
                    "text": "You are an assistant that transcribes speech accurately.",
                }
            ],
        },
        {
            "role": "user",
            "content": [
                {"type": "audio", "audio": audio},
                {"type": "text", "text": "Transcribe this audio."},
            ],
        },
    ]

    input_ids = processor.apply_chat_template(
        messages,
        add_generation_prompt=True,
        tokenize=True,
        return_dict=True,
        return_tensors="pt",
    )
    input_ids = input_ids.to(device, dtype=model.dtype)

    model.eval()
    with torch.no_grad():
        outputs = model.generate(**input_ids, max_new_tokens=128)

    prediction = processor.batch_decode(
        outputs, skip_special_tokens=True, clean_up_tokenization_spaces=False
    )[0]
    prediction = prediction.split("\nmodel\n")[-1].strip()
    return prediction


if __name__ == "__main__":
    prediction = trascribe(model, processor, "/workspace/audio.mp3")
    print(prediction)
Training procedure

This model was trained with SFT.

Framework versions
  • PEFT 0.15.2
  • TRL: 0.19.0
  • Transformers: 4.53.0
  • Pytorch: 2.8.0.dev20250319+cu128
  • Datasets: 3.6.0
  • Tokenizers: 0.21.2
Citations

Cite TRL as:

@misc{vonwerra2022trl,
    title        = {{TRL: Transformer Reinforcement Learning}},
    author       = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
    year         = 2020,
    journal      = {GitHub repository},
    publisher    = {GitHub},
    howpublished = {\url{https://github.com/huggingface/trl}}
}

Runs of JacobLinCool gemma-3n-E4B-transcribe-zh-tw-1 on huggingface.co

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

More Information About gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co Model

gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co

gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co is an AI model on huggingface.co that provides gemma-3n-E4B-transcribe-zh-tw-1's model effect (), which can be used instantly with this JacobLinCool gemma-3n-E4B-transcribe-zh-tw-1 model. huggingface.co supports a free trial of the gemma-3n-E4B-transcribe-zh-tw-1 model, and also provides paid use of the gemma-3n-E4B-transcribe-zh-tw-1. Support call gemma-3n-E4B-transcribe-zh-tw-1 model through api, including Node.js, Python, http.

gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co Url

https://huggingface.co/JacobLinCool/gemma-3n-E4B-transcribe-zh-tw-1

JacobLinCool gemma-3n-E4B-transcribe-zh-tw-1 online free

gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co is an online trial and call api platform, which integrates gemma-3n-E4B-transcribe-zh-tw-1's modeling effects, including api services, and provides a free online trial of gemma-3n-E4B-transcribe-zh-tw-1, you can try gemma-3n-E4B-transcribe-zh-tw-1 online for free by clicking the link below.

JacobLinCool gemma-3n-E4B-transcribe-zh-tw-1 online free url in huggingface.co:

https://huggingface.co/JacobLinCool/gemma-3n-E4B-transcribe-zh-tw-1

gemma-3n-E4B-transcribe-zh-tw-1 install

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

gemma-3n-E4B-transcribe-zh-tw-1 install url in huggingface.co:

https://huggingface.co/JacobLinCool/gemma-3n-E4B-transcribe-zh-tw-1

Url of gemma-3n-E4B-transcribe-zh-tw-1

gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co Url

Provider of gemma-3n-E4B-transcribe-zh-tw-1 huggingface.co

JacobLinCool
ORGANIZATIONS

Other API from JacobLinCool

huggingface.co

Total runs: 20
Run Growth: 15
Growth Rate: 78.95%
Updated:December 16 2025