guidellm 0.4.0a186__py3-none-any.whl → 0.4.0a190__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of guidellm might be problematic. Click here for more details.

@@ -24,6 +24,8 @@ from typing import Any, ClassVar, Literal, TypeVar, cast
24
24
 
25
25
  import yaml
26
26
  from pydantic import (
27
+ AliasChoices,
28
+ AliasGenerator,
27
29
  ConfigDict,
28
30
  Field,
29
31
  ValidationError,
@@ -1796,9 +1798,8 @@ class BenchmarkGenerativeTextArgs(StandardBaseModel):
1796
1798
  scenario_data = scenario_data["args"]
1797
1799
  constructor_kwargs.update(scenario_data)
1798
1800
 
1799
- for key, value in kwargs.items():
1800
- if value != cls.get_default(key):
1801
- constructor_kwargs[key] = value
1801
+ # Apply overrides from kwargs
1802
+ constructor_kwargs.update(kwargs)
1802
1803
 
1803
1804
  return cls.model_validate(constructor_kwargs)
1804
1805
 
@@ -1832,6 +1833,14 @@ class BenchmarkGenerativeTextArgs(StandardBaseModel):
1832
1833
  use_enum_values=True,
1833
1834
  from_attributes=True,
1834
1835
  arbitrary_types_allowed=True,
1836
+ validate_by_alias=True,
1837
+ validate_by_name=True,
1838
+ alias_generator=AliasGenerator(
1839
+ # Support field names with hyphens
1840
+ validation_alias=lambda field_name: AliasChoices(
1841
+ field_name, field_name.replace("_", "-")
1842
+ ),
1843
+ ),
1835
1844
  )
1836
1845
 
1837
1846
  # Required
@@ -1878,6 +1887,12 @@ class BenchmarkGenerativeTextArgs(StandardBaseModel):
1878
1887
  data_request_formatter: DatasetPreprocessor | dict[str, str] | str = Field(
1879
1888
  default="chat_completions",
1880
1889
  description="Request formatting preprocessor or template name",
1890
+ validation_alias=AliasChoices(
1891
+ "data_request_formatter",
1892
+ "data-request-formatter",
1893
+ "request_type",
1894
+ "request-type",
1895
+ ),
1881
1896
  )
1882
1897
  data_collator: Callable | Literal["generative"] | None = Field(
1883
1898
  default="generative", description="Data collator for batch processing"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guidellm
3
- Version: 0.4.0a186
3
+ Version: 0.4.0a190
4
4
  Summary: Guidance platform for deploying and managing large language models.
5
5
  Author: Red Hat
6
6
  License: Apache-2.0
@@ -13,7 +13,7 @@ guidellm/benchmark/entrypoints.py,sha256=U_0JvZYCkQ1Z-qkF8tN_JeuhuGn8mINScwi819b
13
13
  guidellm/benchmark/output.py,sha256=jHa7u6wTh_YSBdO2oDo47079KReXHZ-AKB6zgo8SMvg,27308
14
14
  guidellm/benchmark/profile.py,sha256=RvQdmVLNLU-V8U8xIXm3vH8tY7Hp_4jNPQe5dombj8g,24007
15
15
  guidellm/benchmark/progress.py,sha256=oZqZZ_vInmifBNd490ZTgcCjaGy2_slViEABSWDJgHI,25976
16
- guidellm/benchmark/schemas.py,sha256=WiOVAw48-Edcrb0kNxMMiE0vjlYki1foI3izsp2iVXE,81999
16
+ guidellm/benchmark/schemas.py,sha256=udmODXTveil6xYBRh8fH571zpSAH_0NtxnfcrrMPkzM,82458
17
17
  guidellm/benchmark/scenarios/__init__.py,sha256=SmaYf8hfByJU4LVJ7pZKNxJPYBObl7UKpoaJEmLPdTI,1276
18
18
  guidellm/benchmark/scenarios/chat.json,sha256=4H_ByPCv_9azHn6iTxCY3FfpoUtlbShDPdNyzDwHJVQ,226
19
19
  guidellm/benchmark/scenarios/rag.json,sha256=BIpifJoAtWgB3NRRYK51ZuCH4Zvh1OeBFanB7vcxS-E,231
@@ -87,9 +87,9 @@ guidellm/utils/statistics.py,sha256=KzUYm4fVNVtDd6FRCRBnqYmFcea-9n0JKCAZyqeZLM8,
87
87
  guidellm/utils/synchronous.py,sha256=rRkWwbDf1ty607KUhDKsqV4HcdKU5o0-1s5hwdG-Hak,5209
88
88
  guidellm/utils/text.py,sha256=0K8yUEB4gzztevxzuiMXossSoHhvzcHoKqRhQYQdOrg,11644
89
89
  guidellm/utils/typing.py,sha256=jt0o7SRbDhnvrifR3l4hN8oL3uJNxl8aMnvaoABb-MU,1235
90
- guidellm-0.4.0a186.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
91
- guidellm-0.4.0a186.dist-info/METADATA,sha256=U1y28unlMVgQ1WzN_4Euq17kt75TrHQQzvQFfgUPtzU,21923
92
- guidellm-0.4.0a186.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
93
- guidellm-0.4.0a186.dist-info/entry_points.txt,sha256=DzLFEg47fF7qY1b-9laPz9jg0KSKJ1_D9TbF93kLz_E,51
94
- guidellm-0.4.0a186.dist-info/top_level.txt,sha256=EXRGjnvFtL6MeZTe0tnHRMYcEWUW3vEqoG2zO7vFOtk,9
95
- guidellm-0.4.0a186.dist-info/RECORD,,
90
+ guidellm-0.4.0a190.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
91
+ guidellm-0.4.0a190.dist-info/METADATA,sha256=KVyG3WyZFuO0XfqVlep7C30_V95uwMmCkl9fkLTA3Pk,21923
92
+ guidellm-0.4.0a190.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
93
+ guidellm-0.4.0a190.dist-info/entry_points.txt,sha256=DzLFEg47fF7qY1b-9laPz9jg0KSKJ1_D9TbF93kLz_E,51
94
+ guidellm-0.4.0a190.dist-info/top_level.txt,sha256=EXRGjnvFtL6MeZTe0tnHRMYcEWUW3vEqoG2zO7vFOtk,9
95
+ guidellm-0.4.0a190.dist-info/RECORD,,