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

Enable CPU utilization for LLMLabelGenerator #24

Merged
merged 7 commits into from
Nov 9, 2024
Merged

Conversation

eriknovak
Copy link
Owner

@eriknovak eriknovak commented Nov 9, 2024

The PR adds CPU utilization for LLMLabelGenerator. It also adds model_name and use_gpu as initial parameters:

  • model_name: The LLM used by the LLMLabelGenerator. Defaults to meta-llama/Meta-Llama-3-8B-Instruct.
  • use_gpu: Run the model on a GPU (if available). Defaults to false, i.e., run the generator on CPU.

In addition, it provides some code formatting and cleanup of the components + fixing the package dependency versions.


Closes: #7

@eriknovak eriknovak added the enhancement New feature or request label Nov 9, 2024
@eriknovak eriknovak self-assigned this Nov 9, 2024
@eriknovak eriknovak merged commit e883f45 into main Nov 9, 2024
12 checks passed
@eriknovak eriknovak deleted the feature/llms branch November 9, 2024 22:34
@eriknovak eriknovak linked an issue Nov 10, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Python v3.12
1 participant