Closed riedgar-ms closed 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 59.76%. Comparing base (
ad6fbb2
) to head (0b0f028
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks good to me.
Side note, but do we (or do we want to) expose an interface similar to get_model
in the main guidance
namespace? It may be a nice QoL change so that users can just swap out strings rather than changing import statements when they want to use a different model. Just a thought.
Make debugging tests with a particular LLM easier by adding a
GUIDANCE_SELECTED_MODEL
environment variable.We have the
--selected_model
command line argument forpytest
, which loads a designated LLM in a fixture (if not set, currentlygpt2cpu
is the default). However, when debugging tests within VS Code, setting that command line argument is non-trivial, and our workaround was to patch theselected_model_name()
fixture (which reads the command line argument). This change makes the default value for the command line argument be theGUIDANCE_SELECTED_MODEL
environment variable, and if that is not set, falls back togpt2cpu
.