Files
modelscope--ms-swift/tests/train/test_sample.py
T
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

15 lines
369 B
Python

from swift import SamplingArguments, sampling_main
def test_sampling():
sampling_main(
SamplingArguments(
model='LLM-Research/Meta-Llama-3.1-8B-Instruct',
sampler_engine='transformers',
num_return_sequences=5,
dataset='AI-ModelScope/alpaca-gpt4-data-zh#5'))
if __name__ == '__main__':
test_sampling()