How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="namkoong-lab/LatentGym_Qwen3-8B_1episode_SingleLatent_number_guessing")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM

tokenizer = AutoTokenizer.from_pretrained("namkoong-lab/LatentGym_Qwen3-8B_1episode_SingleLatent_number_guessing")
model = AutoModelForMultimodalLM.from_pretrained("namkoong-lab/LatentGym_Qwen3-8B_1episode_SingleLatent_number_guessing")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

LatentGym_Qwen3-8B_1episode_SingleLatent_number_guessing

GRPO-fine-tuned Qwen3-8B for single-latent training on number_guessing (N=1). Part of the LatentGym testbed.

Environments & training latents

Env Latents seen during training
number_guessing set_of_3

Training hyperparameters

Base model Qwen/Qwen3-8B
Algorithm GRPO
Optimizer AdamW (β₁=0.9, β₂=0.999)
Learning rate 5e-07
LR schedule constant_with_warmup
Weight decay 0.01
Max grad norm 1.0
KL coefficient β 0.04
Clip range ε 0.2
Train batch (prompts) 32
Mini-batch 1
Rollouts per prompt 8
Episodes per trajectory (N) 1
Reward Φ Σᵢ Gᵢ (cumulative)
Epochs 15
Max generation length 64
Sampling (train) T=0.8, top-p=0.95
Seed 263
Downloads last month
15
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for namkoong-lab/LatentGym_Qwen3-8B_1episode_SingleLatent_number_guessing

Finetuned
Qwen/Qwen3-8B
Finetuned
(1753)
this model

Collection including namkoong-lab/LatentGym_Qwen3-8B_1episode_SingleLatent_number_guessing