Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@oelachqar
Copy link
Contributor

Description

  • alpaca_eval is an optional dependency, and if not installed users will get a type check error
  • This PR adds the proper type ignore to mitigate the issue (not the most elegant fix, open to suggestions)

Related issues

Fixes # (issue)

Before submitting

  • This PR only changes documentation. (You can ignore the following checks in that case)
  • Did you read the contributor guideline Pull Request guidelines?
  • Did you link the issue(s) related to this PR in the section above?
  • Did you add / update tests where needed?

Reviewers

At least one review from a member of oumi-ai/oumi-staff is required.

Copy link
Contributor

@wizeng23 wizeng23 left a comment

Choose a reason for hiding this comment

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

Any idea why it isn't an issue for vllm here: https://github.com/oumi-ai/oumi/blob/main/src/oumi/inference/vllm_inference_engine.py

Is it because Alpaca's code has type checking?

@oelachqar
Copy link
Contributor Author

Any idea why it isn't an issue for vllm here: https://github.com/oumi-ai/oumi/blob/main/src/oumi/inference/vllm_inference_engine.py

Is it because Alpaca's code has type checking?

Updated with a similar approach -- much better!

@oelachqar oelachqar merged commit ae92cb2 into main Jun 3, 2025
5 checks passed
@oelachqar oelachqar deleted the oelachqar/fix_fresh_install branch June 3, 2025 16:28
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.

4 participants