deepspeedai / deepspeedai/DeepSpeedExamples

[Question] Step3, fatal error: cuda_bf16.h: No such file or directory

Open
#669 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.8k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
1

Description

I trained actor model and critic model step by step and saved them in ./step1_supervised_finetuning/output and ./step2_reward_model_finetuning/output separately

Then I continue to run the third step by

bash training_scripts/single_gpu/run_1.3b.sh ./step1_supervised_finetuning/output ./step2_reward_model_finetuning/output

It shows a long error and I think the main error is on: ./inference_cublas_wrappers.h:12:10: fatal error: cuda_bf16.h: No such file or directory
#include <cuda_bf16.h>
^~~~~~~~~~~~~
compilation terminated.
My cuda version is 10.2 and I tried to download cuda_bf16.h/cuda_bf16.hpp into /usr/local/cuda-10.2/targets/x86_64-linux/include but still showsNo declaration matches '__half ::__half(__nv_bfloat16)'

I found the main error on the function create_inference_containers of class DeepSpeedHybridEngine so I change it to class DeepSpeedEngine by removing --enable_hybrid_engine in run_1.3b.sh

However, it shows error: cuda out of memory, even though I change all train_batch to 1 and set os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:32"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with training_scripts/single_gpu/run_1.3b.sh and trace the create_inference_containers call in DeepSpeedHybridEngine. Reproduce Step 3 with the reported CUDA 10.2 environment, then check the cuda_bf16.h compilation failure and the later out-of-memory error after disabling hybrid engine. Done means identifying a supported configuration or a documented fix that lets Step 3 run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.