Downloads · 30 days
16
15% of all-time downloads
Wojtekb30/Qwen2.5-1.5B-Instruct-RVQ-Human-Motion-CoT-PoC
Qwen2.5-1.5B-Instruct-RVQ-Human-Motion-CoT-PoC is a machine learning model from Wojtekb30. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as cc-by-nc-4.0.
This model is a motion-language variant of Qwen/Qwen2.5-1.5B-Instruct.
Downloads · 30 days
16
15% of all-time downloads
All-time downloads
108
Public
Parameters
1.5B
3.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.2 GB · 99%
From the Hugging Face model README
This model is a motion-language variant of Qwen/Qwen2.5-1.5B-Instruct.
Given a natural-language action prompt, it produces a first person chain of thought about the movement as well as tokens that can be decoded by RVQ.
RVQ used: https://huggingface.co/Wojtekb30/Motion-RVQ-263d-reconstructor-humanML
Those tokens are decoded by the included RVQ decoder into a 3D human motion sequence (animation).
https://huggingface.co/Wojtekb30/Qwen2.5-1.5B-Instruct-RVQ-Human-Motion-CoT-PoC-2
The variants do better on some animations, but do worse on others.
You are an embodied AI. You reason about your physical state and output precise motor actions inside <move></move> tags.
Recommended temperature of 0.5.
<move>, </move><m_{level}_{value}> where level in [0..3] and value in [0..1023]Typical response pattern:
I lean forward and begin stepping with a steady pace.
<move><m_0_123><m_1_54><m_2_901><m_3_77>...</move>
Motion decoding expects 4 RVQ levels per frame. In practice:
model.safetensors: fine-tuned Qwen weightstokenizer.json, added_tokens.json, tokenizer_config.json: tokenizer with motion tokensrvq_model/rvq_model.py: RVQ VAE architecturervq_model/motion_rvq_weights.safetensors: RVQ decoder/quantizer weightsrvq_model/Mean.npy, rvq_model/Std.npy: normalization stats for motion reconstructionRunQwen.py: end-to-end generation + token parsing + RVQ decoding + animationTrainQwen.py: fine-tuning script used to train the modelInstall minimal dependencies:
pip install torch transformers safetensors numpy matplotlib
Run inference and visualize animation:
python RunQwen.py
Edit PROMPT_TEXT in RunQwen.py to try your own instruction.
<m_level_value> tokens from <move>...</move>.[4, T].Std.npy and Mean.npy.import re
response = """... assistant text ..."""
move_blocks = re.findall(r'<move>(.*?)</move>', response, re.DOTALL)
tokens = []
for block in move_blocks:
tokens.extend(re.findall(r'<m_(\d+)_(\d+)>', block))
# tokens -> list of (level, value) pairs
The included training script (TrainQwen.py) performs full fine-tuning with:
Qwen/Qwen2.5-1.5B-InstructTrained on: https://huggingface.co/Wojtekb30/language-action-RVQ-CoT-humanML