Downloads · 30 days
19
28% of all-time downloads
pokutuna/llm2025-basic-exp018-003
llm2025-basic-exp018-003 is a machine learning model from pokutuna. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Fine-tuned model based on Qwen/Qwen3-4B-Instruct-2507 for structured output generation (JSON / YAML / XML / TOML / CSV).
Downloads · 30 days
19
28% of all-time downloads
All-time downloads
69
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
Fine-tuned model based on Qwen/Qwen3-4B-Instruct-2507 for structured output generation (JSON / YAML / XML / TOML / CSV).
This repository contains model weights and tokenizer.
All datasets are from the LLM2025 competition allowed list.
u-10bei/StructuredOutputPractice_Train_2500u-10bei/StructuredOutputPractice_Train_2500_v2u-10bei/StructuredOutputPractice_Train_512u-10bei/StructuredOutputPractice_Train_512_v2u-10bei/StructuredOutputPractice_Train_512_v4u-10bei/StructuredOutputPractice_Train_512_v5Preprocessing:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "pokutuna/llm2025-basic-exp018-003"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [{"role": "user", "content": "Convert the following text to JSON: ..."}]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
generated = outputs[0][inputs["input_ids"].shape[1]:]
print(tokenizer.decode(generated, skip_special_tokens=True))