lucasjinreal / lucasjinreal/Namo-R1

ValueError: 'aimv2' is already used by a Transformers config, pick another name.

Open
#21 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
256
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Using Python 3.12.5 on macOS (`pyenv` installed), with a clean venv and namo installed via `pip`, I get this error when importing anything under `namo.api.vl`

**Steps to reproduce:**
```console
❯ mkdir /tmp/namo_test && cd /tmp/namo_test
❯ pyenv install 3.12.5
❯ pyenv local 3.12.5
❯ python -m venv .venv
❯ source .venv/bin/activate
❯ python -m pip --isolated --no-cache-dir install "pip==25.2"
❯ python -m pip --isolated --no-cache-dir install "namo==0.0.9"
❯ python -c "from namo.api.vl import VLInfer"
```

**Error:**
```shell
Traceback (most recent call last):
File "", line 1, in
File "/tmp/namo_test/.venv/lib/python3.12/site-packages/namo/api/vl.py", line 9, in
from .namo import NamoVL
File "/tmp/namo_test/.venv/lib/python3.12/site-packages/namo/api/namo.py", line 10, in
from namo.models.namo import NamoForCausalLM
File "/tmp/namo_test/.venv/lib/python3.12/site-packages/namo/models/namo.py", line 17, in
from namo.models.vision.ve import get_ve
File "/tmp/namo_test/.venv/lib/python3.12/site-packages/namo/models/vision/__init__.py", line 10, in
AutoConfig.register("aimv2", AIMv2Config)
File "/tmp/namo_test/.venv/lib/python3.12/site-packages/transformers/models/auto/configuration_auto.py", line 1350, in register
CONFIG_MAPPING.register(model_type, config, exist_ok=exist_ok)
File "/tmp/namo_test/.venv/lib/python3.12/site-packages/transformers/models/auto/configuration_auto.py", line 1037, in register
raise ValueError(f"'{key}' is already used by a Transformers config, pick another name.")
ValueError: 'aimv2' is already used by a Transformers config, pick another name.
```

**Python Environment:**
```console
❯ python -m pip freeze
accelerate==1.10.1
aiohappyeyeballs==2.6.1
aiohttp==3.12.15
aiosignal==1.4.0
annotated-types==0.7.0
antlr4-python3-runtime==4.9.3
anyio==4.11.0
attrs==25.3.0
blobfile==3.1.0
cached-property==2.0.1
certifi==2025.8.3
charset-normalizer==3.4.3
click==8.3.0
coreai-all==0.1.0
datasets==4.1.1
dill==0.4.0
distro==1.9.0
einops==0.8.1
einx==0.3.0
fastapi==0.117.1
filelock==3.19.1
frozendict==2.4.6
frozenlist==1.7.0
fsspec==2025.9.0
h11==0.16.0
hf-xet==1.1.10
hf_transfer==0.1.9
httpcore==1.0.9
httpx==0.28.1
huggingface-hub==0.35.1
idna==3.10
Jinja2==3.1.6
jiter==0.11.0
kagglehub==0.3.13
loguru==0.7.3
lxml==6.0.2
MarkupSafe==3.0.2
mpmath==1.3.0
multidict==6.6.4
multiprocess==0.70.16
namo==0.0.9
natsort==8.4.0
networkx==3.5
numpy==2.3.3
omegaconf==2.3.0
openai==1.109.1
packaging==25.0
pandas==2.3.2
peft==0.17.1
pillow==11.3.0
propcache==0.3.2
psutil==7.1.0
pyarrow==21.0.0
pycryptodomex==3.23.0
pydantic==2.11.9
pydantic_core==2.33.2
pydub==0.25.1
python-datauri==3.0.2
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.2
regex==2025.9.18
requests==2.32.5
safetensors==0.6.2
sentencepiece==0.2.1
setuptools==80.9.0
shortuuid==1.0.13
six==1.17.0
sniffio==1.3.1
starlette==0.48.0
sympy==1.14.0
termcolor==3.1.0
tiktoken==0.11.0
timm==1.0.20
tokenizers==0.22.1
torch==2.8.0
torchao==0.13.0
torchdata==0.11.0
torchtune==0.6.1
torchvision==0.23.0
tqdm==4.67.1
transformers==4.56.2
typing-inspection==0.4.1
typing_extensions==4.15.0
tzdata==2025.2
urllib3==2.5.0
uvicorn==0.37.0
vector-quantize-pytorch==1.23.2
xxhash==3.5.0
yarl==1.20.1
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the import in the clean Python 3.12.5 virtual environment and inspect namo/models/vision/__init__.py, where the traceback shows the AutoConfig registration. Confirm the import succeeds without the existing Transformers config-name collision, then rerun `python -c "from namo.api.vl import VLInfer"`.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.