mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 20:12:33 +00:00
full evals / full scoring flow
This commit is contained in:
parent
cccd5be090
commit
be4f395032
4 changed files with 88 additions and 109 deletions
|
|
@ -67,7 +67,7 @@ class CustomDataset(BaseDataset[DictSample]):
|
|||
raise ValueError(f"Unsupported file type: {self.config.url}")
|
||||
|
||||
if n_samples is not None:
|
||||
df = df.sample(n=n_samples)
|
||||
df = df.sample(n=min(n_samples, len(df)))
|
||||
|
||||
self.dataset = Dataset.from_pandas(df)
|
||||
if self.config.rename_columns_map:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue