CoolFace
Modelpublic

zhongweixie/inplace-ttt-qwen3-4b-64k-baseline

sourceHugging Faceapache-2.0updated 23d agoView on Hugging Face
0likes497downloads
Model Card

Qwen3-4B Baseline (64k, 750 steps)

This model is Qwen3-4B trained with standard training (no TTT) on 64k context length for 750 training steps. This serves as the baseline for comparison with the In-Place TTT version.

๐ŸŽฏ Model Overview

  • โ€”Base Model: Qwen3-4B (Qwen2.5-4B architecture)
  • โ€”Training Method: Standard (no Test-Time Training)
  • โ€”Context Length: 64k tokens
  • โ€”Training Steps: 750
  • โ€”Model Size: 8.3GB
  • โ€”Format: HuggingFace Transformers (safetensors)
  • โ€”Training Date: May 13, 2026

๐Ÿ“Š Purpose

This is the baseline model for the In-Place TTT research project at 64k context length. It uses the same:

  • โ€”Base architecture (Qwen3-4B)
  • โ€”Training data (ProLong 64k)
  • โ€”Hyperparameters

The only difference is that it does not use In-Place Test-Time Training.

๐Ÿ”ฌ Comparison

Compare this baseline with the TTT version to see the impact of In-Place TTT:

ModelTypeContextSteps
This ModelBaseline64k750
64k TTTIn-Place TTT64k1250

๐Ÿš€ Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

# Load model
model = AutoModelForCausalLM.from_pretrained(
    "zhongweixie/inplace-ttt-qwen3-4b-64k-baseline",
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True
)

tokenizer = AutoTokenizer.from_pretrained(
    "zhongweixie/inplace-ttt-qwen3-4b-64k-baseline",
    trust_remote_code=True
)

# Generate text with long context
prompt = "Your very long context prompt here (up to 64k tokens)..."
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))

๐Ÿ“ˆ Training Details

  • โ€”Training Data: ProLong text dataset
  • โ€”Context Length: 65,536 tokens
  • โ€”Training Steps: 750
  • โ€”Optimizer: AdamW
  • โ€”Hardware: 8x H100 GPUs

๐Ÿ”— Related Models

Part of the In-Place TTT model family:

๐Ÿ“ฆ Resources

  • โ€”GitHub Repository: https://github.com/zhongweixie/inplace_ttt
  • โ€”Results Dataset: https://huggingface.co/datasets/zhongweixie/inplace-ttt-results
  • โ€”Paper: https://arxiv.org/abs/2604.06169

๐Ÿ“„ License

Apache 2.0 License

๐ŸŽ“ Citation

bibtex
@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}
}

๐Ÿ“ž Contact

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

zhongweixie/inplace-ttt-qwen3-4b-64k-baseline ยท CoolFace