Skip to content

qustion about runtimeError #23

Description

@eunkyungYoo

Hello,

I had a runtime error as below. I couldn't find a solution.
Could you check this issue?

Thank you.

MMCV: 2.0.0rc4
CUDA : cu118
MMDetection: 3.3.0
torch : 2.0.1+cu118

=============
Traceback (most recent call last):
File "/app/data/moai/demo.py", line 21, in
= prepare_moai(moai_path='BK-Lee/MoAI-7B', bits=4, grad_ckpt=False, lora=False, dtype='fp16')
File "/app/data/moai/moai/load_moai.py", line 60, in prepare_moai
param.requires_grad_(True)
RuntimeError: only Tensors of floating point dtype can require gradients

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions