modularml / max

A collection of sample programs, notebooks, and tools which highlight the power of the MAX Platform
https://www.modular.com
Other
202 stars 30 forks source link

[BUG]: ModuleNotFoundError: No module named 'max' #185

Closed odhiambo123 closed 2 days ago

odhiambo123 commented 3 days ago

Bug description

attempting to run steps 2 of "Run your first model" : bash run.sh

using anaconda I get a ModuleNotFound error. please see the terminal output below.warnings.warn( config.json: 100%|██████████████████████████████| 570/570 [00:00<00:00, 834kB/s] model.safetensors: 100%|█████████████████████| 440M/440M [00:11<00:00, 40.0MB/s] Saving model in TorchScript format... Converting the model to TorchScript format... /opt/anaconda3/envs/max/lib/python3.11/site-packages/transformers/modeling_utils.py:4371: FutureWarning:_is_quantized_training_enabledis going to be deprecated in transformers 4.39.0. Please usemodel.hf_quantizer.is_trainable` instead warnings.warn( Model saved.

Steps to reproduce

System information

- What OS did you do install MAX on ? macOS Sonoma
- Provide version information for MAX by pasting the output of max -v` zsh: command not found: max
- Provide version information for Mojo by pasting the output of mojo -v` zsh: command not found: mojo
- Provide Modular CLI version by pasting the output of `modular -v`0.8.0
odhiambo123 commented 2 days ago

successfully succeeded after reinstall

ehsanmok commented 2 days ago

Thanks