This model is a fine-tuned version of
Qwen/Qwen3-4B
.
It has been trained using
TRL
.
Quick start
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="lewtun/qwen3-4b-capybara", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
Training procedure
This model was trained with SFT.
Framework versions
TRL: 1.6.0
Transformers: 5.12.1
Pytorch: 2.12.1
Datasets: 5.0.0
Tokenizers: 0.22.2
Citations
Cite TRL as:
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}
Generated by ML Intern
This model repository was generated by
ML Intern
, an agent for machine learning research and development on the Hugging Face Hub.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = 'lewtun/qwen3-4b-capybara'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace
AutoModelForCausalLM
with the appropriate
AutoModel
class.
Runs of lewtun qwen3-4b-capybara on huggingface.co
117
Total runs
0
24-hour runs
16
3-day runs
21
7-day runs
21
30-day runs
More Information About qwen3-4b-capybara huggingface.co Model
qwen3-4b-capybara huggingface.co
qwen3-4b-capybara huggingface.co is an AI model on huggingface.co that provides qwen3-4b-capybara's model effect (), which can be used instantly with this lewtun qwen3-4b-capybara model. huggingface.co supports a free trial of the qwen3-4b-capybara model, and also provides paid use of the qwen3-4b-capybara. Support call qwen3-4b-capybara model through api, including Node.js, Python, http.
qwen3-4b-capybara huggingface.co is an online trial and call api platform, which integrates qwen3-4b-capybara's modeling effects, including api services, and provides a free online trial of qwen3-4b-capybara, you can try qwen3-4b-capybara online for free by clicking the link below.
lewtun qwen3-4b-capybara online free url in huggingface.co:
qwen3-4b-capybara is an open source model from GitHub that offers a free installation service, and any user can find qwen3-4b-capybara on GitHub to install. At the same time, huggingface.co provides the effect of qwen3-4b-capybara install, users can directly use qwen3-4b-capybara installed effect in huggingface.co for debugging and trial. It also supports api for free installation.