Python3.12 - on linux discovery issues
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 1.5k
- Forks
- 125
- Avg merge
- 22d 8m
- Merged PRs (30d)
- 1
Description
It seems I'm missing some modules when I run the experiements:
~/kblam/experiments$ python train.py --verbose --dataset synthetic_data --N 120000 --B 20 --total_steps 601 --encoder_spec OAI --use_oai_embd --key_embd_src key --use_data_aug
Traceback (most recent call last):
File "/home/ubuntu/kblam/experiments/train.py", line 30, in <module>
from kblam.models.llama3_model import KblamLlamaForCausalLM
File "/home/ubuntu/kblam/src/kblam/models/llama3_model.py", line 43, in <module>
from transformers.models.llama.modeling_llama import (
ImportError: cannot import name 'LlamaDynamicNTKScalingRotaryEmbedding' from 'transformers.models.llama.modeling_llama' (/home/ubuntu/kblam/lib/python3.12/site-packages/transformers/models/llama/modeling_llama.py)
- My transformers version is the 4.48.0 as per the pyproject.toml file.
- Running on LINUX in a venv
- Huggingface key is valid and connected (read only)
- Python 3.12 < Could that be the culprit?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command from experiments/train.py and inspect the import in src/kblam/models/llama3_model.py alongside the transformers version declared in pyproject.toml. Determine whether Python 3.12 or the installed Transformers package explains the missing symbol, then verify the expected supported environment and training command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100