Downloads · 30 days
12
13% of all-time downloads
kevineen/qwen3-4b-adv59-alfworld-dbbench
qwen3-4b-adv59-alfworld-dbbench is a text generation model from kevineen. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides a merged model fine-tuned from Qwen/Qwen3-4B-Instruct-2507 using LoRA + Unsloth.
Downloads · 30 days
12
13% of all-time downloads
All-time downloads
92
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
This repository provides a merged model fine-tuned from Qwen/Qwen3-4B-Instruct-2507 using LoRA + Unsloth.
The LoRA adapter has been merged into the base model. This repository contains the full merged model weights.
This adapter is trained to improve multi-turn agent task performance on ALFWorld (household tasks) and DBBench (database operations).
Loss is applied to all assistant turns in the multi-turn trajectory, enabling the model to learn environment observation, action selection, tool use, and recovery from errors.
from vllm import LLM, SamplingParams
model = LLM(
model="kevineen/qwen3-4b-adv59-alfworld-dbbench",
max_model_len=8192,
gpu_memory_utilization=0.95,
)
prompts = [
"Your task is to: put a clean lettuce leaf in the fridge.",
# ... more prompts
]
sampling_params = SamplingParams(temperature=0.0, max_tokens=512)
outputs = model.generate(prompts, sampling_params)
for output in outputs:
print(output.outputs[0].text)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "kevineen/qwen3-4b-adv59-alfworld-dbbench"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
# Inference
messages = [{"role": "user", "content": "Your task here"}]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))
Training data: ALFWorld + DBBench mixed dataset
Datasets:
Dataset License: MIT License. This dataset is used and distributed under the terms of the MIT License.
Compliance: Users must comply with the MIT license (including copyright notice) and the base model's original terms of use.