ZIm/crates/eval/examples/metal_i64_support/criteria.md
Thomas Mickley-Doyle d74f0735c2
Add more eval examples + filtering examples by language + fix git concurrent usage (#28719)
Release Notes:

- N/A

---------

Co-authored-by: michael <michael@zed.dev>
Co-authored-by: agus <agus@zed.dev>
2025-04-14 22:05:46 +00:00

1.1 KiB

  1. The changes improve the configurability of the TextGeneration struct and its initialization by refactoring generation parameters (temperature, top_p) to use non-optional types with default values, simplifying their use throughout the codebase.
  2. The argument parser is updated to enhance usability: verbose_prompt is renamed to a more general verbose flag, several arguments are given default values (e.g., temperature, top_p, sample_len), and optional arguments like cache_path and weight_path are now properly handled with conditional logic and fallbacks.
  3. The code loading the model configuration is updated to support deserializing from a JSON config file using Serde, and the Config struct is extended with a new rope_ratio field with a default value via a helper function, improving flexibility for different model setups.
  4. Import statements and general code layout are cleaned up for clarity and consistency, including reorganizing imports and removing unnecessary unwraps or panics, while maintaining the same core functionality of the text generation pipeline.