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="xxang/AStar-Thought-V2-Qwen3.6-27B")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("xxang/AStar-Thought-V2-Qwen3.6-27B")
model = AutoModelForMultimodalLM.from_pretrained("xxang/AStar-Thought-V2-Qwen3.6-27B", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.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=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

AStar-Thought-Latent-Qwen3.5-0.8B-deepseek-v3.2-speciale-openr1-math-3k-filtered-v10-angle90-Qwen3.6-27B-v2.12-strc0.1

This model is a fine-tuned version of Qwen/Qwen3.6-27B for the A*-Thought-V2 framework, as described in the paper A*-Thought-V2: Efficient Latent Reasoning via Geometric Dynamics of LLM.

A*-Thought-V2 is an explicit-implicit interleaved efficient reasoning architecture guided by LLM dynamics. By interweaving implicit latent-space reasoning with explicit text, it performs lossless compression of the chain-of-thought: aligned reasoning steps remain explicit text, while deviating steps are compressed into continuous latent tokens.

Code for data compression, training, and evaluation is available at the AStar-Thought GitHub repository.

Training and evaluation data

Trained using the A*-Thought-V2 compression pipeline on the OpenR1-Math-3k dataset.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • train_batch_size: 1
  • eval_batch_size: 8
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 8
  • gradient_accumulation_steps: 8
  • total_train_batch_size: 64
  • total_eval_batch_size: 64
  • optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_steps: 0.1
  • num_epochs: 3.0

Training results

  • Final training loss: 0.3388

Framework versions

  • Transformers 5.2.0
  • Pytorch 2.10.0+cu128
  • Datasets 4.0.0
  • Tokenizers 0.22.2
Downloads last month
135
Safetensors
Model size
27B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for xxang/AStar-Thought-V2-Qwen3.6-27B

Base model

Qwen/Qwen3.6-27B
Finetuned
(412)
this model
Quantizations
1 model

Collection including xxang/AStar-Thought-V2-Qwen3.6-27B

Paper for xxang/AStar-Thought-V2-Qwen3.6-27B