这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kaixuanliu
Copy link
Contributor

No description provided.

from peft import LoraConfig, get_peft_model


os.environ["CUDA_VISIBLE_DEVICES"] = "0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this safe to be removed? If yes, please also remove the os import.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems it is needed, will add it back.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@BenjaminBossan
Copy link
Member

@kaixuanliu Could you please run make style?

@kaixuanliu
Copy link
Contributor Author

@BenjaminBossan Oh my fault, done.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the bnb 4bit example to work with XPU.

@BenjaminBossan BenjaminBossan merged commit d7194f8 into huggingface:main Aug 6, 2025
2 of 14 checks passed
@kaixuanliu kaixuanliu deleted the fp4-ft-xpu branch August 6, 2025 14:35
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants