Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

FEAT - Adding optional kwargs to huggingface chat target #602

Conversation

perezbecker
Copy link
Contributor

Description

This feature adds the optional keywords device_map, torch_dtype, and attn_implementation to the HuggingFaceChatTarget class. This PR addresses the Issue #601 I recently opened. I often have to specify these parameters when loading intermediate development models of the Phi family, as well as other open source models from Huggingface of similar size.

Tests and Documentation

I added a test to check whether optional arguments are loaded correctly when loading a HuggingFace model. I have also successfully ran this code in my local branch.

Hi haven't run JupyText yet.

@romanlutz romanlutz merged commit 88aed4b into Azure:main Dec 13, 2024
9 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.

2 participants