Skip to content

Conversation

@jiqing-feng
Copy link
Contributor

@jiqing-feng jiqing-feng commented Dec 24, 2024

A small fix for the device map. We should only assign the device to 0 when it detects the device is CPU. Otherwise, it will break the device_map="auto".
With this change, we could pass the device map check of transformers gptq test. See here

Hi @IlyasMoutawwakil . Please trigger the CI and review the tiny change. Thanks!

Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
@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.

@IlyasMoutawwakil IlyasMoutawwakil merged commit 600436e into huggingface:main Jan 9, 2025
39 of 48 checks passed
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