Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新代码评估结果generated_predictions.jsonl的顺序乱了,前天还是正常的 #3992

Closed
1 task done
johnmai-dev opened this issue May 30, 2024 · 1 comment
Closed
1 task done
Labels
solved This problem has been already solved

Comments

@johnmai-dev
Copy link

Reminder

  • I have read the README and searched the existing issues.

Reproduction

generated_predictions.jsonl的顺序乱了,之前我是按找generated_predictions.jsonl顺序去eval_data数据集中找对应的数据。

Expected behavior

No response

System Info

No response

Others

No response

@hiyouga hiyouga added bug Something isn't working pending This problem is yet to be addressed labels May 30, 2024
@johnmai-dev
Copy link
Author

这个commit导致的:b55fb61

if data_args.max_samples is not None: # truncate dataset
indexes = np.random.permutation(len(dataset))[: data_args.max_samples]
dataset = dataset.select(indexes)

目前我先自己改回了

    if data_args.max_samples is not None:  # truncate dataset
        num_samples = min(data_args.max_samples, len(dataset))
        dataset = dataset.select(range(num_samples))

@hiyouga

@hiyouga hiyouga added solved This problem has been already solved and removed bug Something isn't working pending This problem is yet to be addressed labels Jun 3, 2024
@hiyouga hiyouga closed this as completed in a18acf2 Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants