Downloads · 30 days
14
22% of all-time downloads
RinnRinnmini/qwen3-4b-agent-trajectory-merged2
qwen3-4b-agent-trajectory-merged2 is a text generation model from RinnRinnmini. 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 (fully materialized) model created by merging a LoRA adapter into the base model:
Downloads · 30 days
14
22% of all-time downloads
All-time downloads
65
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 (fully materialized) model created by merging a LoRA adapter into the base model:
✅ This repo contains the merged model weights. You do NOT need PEFT / LoRA adapters at inference time.
Note: This is a derivative of the base model. Usage must comply with the base model's original terms.
This model is trained to improve multi-turn agent task performance on agent-trajectory style data (e.g., ALFWorld household tasks and DBBench database operations, depending on the datasets listed below).
Loss is applied to all assistant turns in the multi-turn trajectories so the model learns: environment observation, action selection, tool use, and recovery from errors.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "your_id/your-merged-repo"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True,
)
# (optional) generation example
inputs = tokenizer("Hello! What should I do next?", return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(out[0], skip_special_tokens=True))