git-cloner / llama2-chinese Goto Github PK
View Code? Open in Web Editor NEWLlama2 chinese finetuning
Home Page: https://gitclone.com/aiit/chat/
License: MIT License
Llama2 chinese finetuning
Home Page: https://gitclone.com/aiit/chat/
License: MIT License
python generate.py --base_model '../Llama-2-7b-ms/' ---lora_weights '../llama-recipes/output/model' --load_8bit
Training Epoch0: 0it [00:00, ?it/s]
Training Epoch0: 0it [00:00, ?it/s]
Traceback (most recent call last):
File "/data-ai/usr/weiling/Llama2-chinese/llama_finetuning.py", line 238, in <module>
fire.Fire(main)
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/data-ai/usr/weiling/Llama2-chinese/llama_finetuning.py", line 221, in main
results = train(
File "/data-ai/usr/weiling/Llama2-chinese/utils/train_utils.py", line 112, in train
train_epoch_loss = total_loss / data_set_len
ZeroDivisionError: float division by zero
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 12944) of binary: /opt/conda/envs/llama-recipes/bin/python3.9
Traceback (most recent call last):
File "/opt/conda/envs/llama-recipes/bin/torchrun", line 8, in <module>
sys.exit(main())
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
return f(*args, **kwargs)
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/torch/distributed/run.py", line 794, in main
run(args)
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
return launch_agent(self._config, self._entrypoint, list(args))
File "/opt/conda/envs/llama-recipes/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
这个错误,请问如何解决呢?
nvidia-smi监控使用率,每次都是 一张跑满,一张空载。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.