Downloads · 30 days
68
9% of all-time downloads
zhongweixie/inplace-ttt-qwen3-4b-32k-ttt
inplace-ttt-qwen3-4b-32k-ttt is a text generation model from zhongweixie. 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 model is Qwen3-4B trained with In-Place Test-Time Training (In-Place TTT) on 32k context length for 6000 training steps.
Downloads · 30 days
68
9% of all-time downloads
All-time downloads
793
Public
Parameters
4.5B
8.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.9 GB · 100%
From the Hugging Face model README
This model is Qwen3-4B trained with In-Place Test-Time Training (In-Place TTT) on 32k context length for 6000 training steps.
In-Place Test-Time Training is a novel approach that enables:
For more details, see the paper: In-Place Test-Time Training
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model
model = AutoModelForCausalLM.from_pretrained(
"zhongweixie/inplace-ttt-qwen3-4b-32k-ttt",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"zhongweixie/inplace-ttt-qwen3-4b-32k-ttt",
trust_remote_code=True
)
# Generate text
prompt = "Your long context prompt here..."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This is part of the In-Place TTT model family:
Apache 2.0 License
@inproceedings{feng2026inplace,
title = {In-Place Test-Time Training},
author = {Feng, Guhao and Luo, Shengjie and Hua, Kai and Zhang, Ge and Huang, Wenhao and He, Di and Cai, Tianle},
booktitle = {International Conference on Learning Representations (ICLR)},
year = {2026},
note = {Oral Presentation},
url = {https://arxiv.org/abs/2604.06169}
}
For questions or issues, please open an issue in the GitHub repository.
Model Card Author: Hansirui (zhongweixie)
Uploaded: 2026-09-04
Project: In-Place Test-Time Training