missing 1 required positional argument: 'train_config'
#5
by
longylian
- opened
(wallx) ubuntu@ubuntu:~/Projects/wallx.universe/src/wall-x$ git remote -v
origin https://github.com/X-Square-Robot/wall-x.git (fetch)
origin https://github.com/X-Square-Robot/wall-x.git (push)
(wallx) ubuntu@ubuntu:~/Projects/wallx.universe/src/wall-x$ ls ./checkpoints/x-square-robot/wall-oss-fast/
assets config.json generation_config.json model.safetensors README.md tokenizer.json
chat_template.json configuration.json merges.txt preprocessor_config.json tokenizer_config.json vocab.json
(wallx) ubuntu@ubuntu:~/Projects/wallx.universe/src/wall-x$
(wallx) ubuntu@ubuntu:~/Projects/wallx.universe/src/wall-x$ python3 ./scripts/fake_inference.py
Traceback (most recent call last):
File "/home/ubuntu/Projects/wallx.universe/src/wall-x/./scripts/fake_inference.py", line 5, in <module>
model = Qwen2_5_VLMoEForAction.from_pretrained(model_path)
TypeError: Qwen2_5_VLMoEForAction.from_pretrained() missing 1 required positional argument: 'train_config'
(wallx) ubuntu@ubuntu:~/Projects/wallx.universe/src/wall-x$
import torch
from wall_x.model.qwen2_5_based.modeling_qwen2_5_vl_act import Qwen2_5_VLMoEForAction
model_path = "./checkpoints/x-square-robot/wall-oss-fast/"
model = Qwen2_5_VLMoEForAction.from_pretrained(model_path)
model.eval()