Downloads · 30 days
98
22% of all-time downloads
vuminhtue/qwen3_sentiment_tinystories
qwen3_sentiment_tinystories is a text generation model from vuminhtue. Use it when you need the model to write or continue text. The card lists the license as mit.
This is a Qwen3-0.6B model pre-trained on the TinyStories dataset for 200k iterations.
Downloads · 30 days
98
22% of all-time downloads
All-time downloads
441
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.pt1.5 GB · 100%
From the Hugging Face model README
This is a Qwen3-0.6B model pre-trained on the TinyStories dataset for 200k iterations.
from huggingface_hub import hf_hub_download
import torch
# Download model weights
model_path = hf_hub_download(
repo_id="vuminhtue/qwen3-200k-tinystories",
filename="Qwen3_200k_model_params.pt"
)
# Download config
config_path = hf_hub_download(
repo_id="vuminhtue/qwen3-200k-tinystories",
filename="config.json"
)
import torch
import tiktoken
from Qwen3_model import Qwen3Model # You need this file from the original code
# Set up configuration
QWEN3_CONFIG = {
"vocab_size": 151936,
"context_length": 40960,
"emb_dim": 1024,
"n_heads": 16,
"n_layers": 28,
"hidden_dim": 3072,
"head_dim": 128,
"qk_norm": True,
"n_kv_groups": 8,
"rope_base": 1000000.0,
"dtype": torch.bfloat16,
}
# Load model
model = Qwen3Model(QWEN3_CONFIG)
device = "cuda" if torch.cuda.is_available() else "cpu"
model.load_state_dict(torch.load(model_path, map_location=device))
model = model.to(device)
model.eval()
# Generate text
tokenizer = tiktoken.get_encoding("gpt2")
# Your generation code here...
The model was trained on TinyStories, a dataset of simple stories for children. It can generate coherent short stories in a similar style.
If you use this model, please cite:
@misc{qwen3-tinystories-2025,
author = {Tue Vu},
title = {Qwen3-0.6B Pre-trained on TinyStories},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/vuminhtue/qwen3-200k-tinystories}},
}
MIT License
For questions or issues, please open an issue on the HuggingFace model page.