Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] fix hf lora test for accelerate #2208

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

tosterberg
Copy link
Contributor

Description

Previous to pipeline_parallel being added to hf properties, the base behavior for TP > 0 would initiate device mapping as auto. With the addition of pipeline_parallel it now also requires pipeline_parallel to be set PP > 0. Both of these values default value is -1, so this changed the default behavior.

I have fixed this by specifically adding the device mapping, but we should consider reverting the issue above.
https://github.com/deepjavalibrary/djl-serving/blob/master/engines/python/setup/djl_python/properties_manager/hf_properties.py#L116-L137

@tosterberg tosterberg requested review from zachgk, frankfliu and a team as code owners July 20, 2024 00:37
@tosterberg tosterberg merged commit 29e0d84 into deepjavalibrary:master Jul 20, 2024
9 checks passed
@tosterberg tosterberg deleted the fix-hflora branch July 20, 2024 00:49
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.

2 participants