Git Product home page Git Product logo

Comments (5)

ftgreat avatar ftgreat commented on August 27, 2024

use which torchrun to make sure whether torchrun is installed and can be found.

PS, could you tell us the purpose of using this script, pretraining or finetune? thanks

from flagai.

Micla-SHL avatar Micla-SHL commented on August 27, 2024

2023-11-03 10-16-43屏幕截图
It depends on the script itself. My thought is to follow the readme step-by-step first, getting everything working, before considering any branching

from flagai.

Micla-SHL avatar Micla-SHL commented on August 27, 2024

Update:
I've just realized
dist_trigger_docker.sh # 多机多卡运行的脚本文件,单机可选用local_trigger_docker.sh
run:
bash local_trigger_docker.sh hostfile Aquila-chat.yaml aquila-7b aquila_experiment
Other errors were produced, so for now I'm assuming the torchrun error was skipped over.. torchrun command not found It's not a concern of mine anymore.

For users with multiple GPUs, manually setting slots=1 and running bash dist_trigger_docker.sh hostfile Aquila-chat.yaml aquila-7b aquila_experiment specifically will trigger a "torchrun command not found" error?

from flagai.

Micla-SHL avatar Micla-SHL commented on August 27, 2024

The problem that just came up:

  File "/Micla/Project/FlagAI/examples/Aquila/Aquila-chat/aquila_chat.py", line 15, in <module>
    from flagai.env_trainer_v1 import EnvTrainer
    ModuleNotFoundError: No module named 'flagai.env_trainer_v1'

~/examples/Aquila/Aquila-chat/aquila_chat.py

from flagai.auto_model.auto_loader import AutoLoader             #run ok
from flagai.data.tokenizer import Tokenizer                           #run ok
from flagai.env_args import EnvArgs
from flagai.env_trainer_v1 import EnvTrainer      ##run error No module named 'flagai.env_trainer_v1'
import jsonlines
import numpy as np
import cyg_conversation as conversation_lib
from flagai.model.tools.peft.prepare_lora import lora_transfer     ##No module named 'flagai.model.tools'

~/_init_.py is None, edit: from . import env_trainer_v1 be ineffective
edit: aquila_chat.py : import sys / sys.path.append("..") be ineffective

What more can be done?

from flagai.

Micla-SHL avatar Micla-SHL commented on August 27, 2024

Because https://github.com/FlagAI-Open/Aquila2 .issues close

from flagai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.