Git Product home page Git Product logo

Comments (4)

starkhu avatar starkhu commented on May 16, 2024

the following is detailed error message:
Traceback (most recent call last):
File "pretrain_gpt.py", line 276, in
pretrain(train_valid_test_datasets_provider, model_provider, forward_step,
File "/root/large_model/Megatron-DeepSpeed/megatron/training.py", line 163, in pretrain
iteration = train(forward_step_func,
File "/root/large_model/Megatron-DeepSpeed/megatron/training.py", line 877, in train
train_step(forward_step_func,
File "/root/large_model/Megatron-DeepSpeed/megatron/training.py", line 499, in train_step
losses_reduced = forward_backward_func(
File "/root/large_model/Megatron-DeepSpeed/megatron/schedules.py", line 154, in forward_backward_no_pipelining
backward_step(optimizer, input_tensor, output_tensor,
File "/root/large_model/Megatron-DeepSpeed/megatron/schedules.py", line 104, in backward_step
torch.autograd.backward(output_tensor, grad_tensors=output_tensor_grad)
File "/opt/conda/lib/python3.8/site-packages/torch/autograd/init.py", line 145, in backward
Variable._execution_engine.run_backward(
File "/opt/conda/lib/python3.8/site-packages/torch/autograd/function.py", line 89, in apply
return self._forward_cls.backward(self, *args) # type: ignore
File "/root/large_model/Megatron-DeepSpeed/megatron/mpu/random.py", line 311, in backward
torch.autograd.backward(outputs, args)
File "/opt/conda/lib/python3.8/site-packages/torch/autograd/init.py", line 145, in backward
Variable._execution_engine.run_backward(
RuntimeError: element 1 of tensors does not require grad and does not have a grad_fn

from megatron-deepspeed.

zhisunyy avatar zhisunyy commented on May 16, 2024

I found the same problem.
help!

from megatron-deepspeed.

1024er avatar 1024er commented on May 16, 2024

git checkout v2.4

from megatron-deepspeed.

starkhu avatar starkhu commented on May 16, 2024

git checkout v2.4

thanks, i have trained gpt by megatron-lm repo successfully.
i will try this way later.

from megatron-deepspeed.

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.