---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in ()
12 )
13
---> 14 ppo_trainer = PPOTrainer(config=config,
15 model=ppo_model,
16 ref_model=ref_model,
3 frames
/usr/local/lib/python3.10/dist-packages/torch/utils/data/sampler.py in __init__(self, data_source, replacement, num_samples, generator)
141
142 if not isinstance(self.num_samples, int) or self.num_samples 143 raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}")
144
145 @property
ValueError: num_samples should be a positive integer value, but got num_samples=0
ppo_trainer = PPOTrainer(config=config, model=ppo_model, ref_model=ref_model, tokenizer=tokenizer, dataset=dataset_train, data_collator=collator) [/code] но при запуске этого кода я получаю ошибку типа [code]--------------------------------------------------------------------------- ValueError Traceback (most recent call last) in () 12 ) 13 ---> 14 ppo_trainer = PPOTrainer(config=config, 15 model=ppo_model, 16 ref_model=ref_model,
3 frames /usr/local/lib/python3.10/dist-packages/torch/utils/data/sampler.py in __init__(self, data_source, replacement, num_samples, generator) 141 142 if not isinstance(self.num_samples, int) or self.num_samples 143 raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}") 144 145 @property
ValueError: num_samples should be a positive integer value, but got num_samples=0 [/code] How to solve this error? Thanks in advance.
Пытаюсь создать подграфик из 2 строк и 1 столбца с помощью Gridspec и постоянно получаю ошибку
ValueError: Number of rows must be a positive integer, not GridSpec(2, 1, height_ratios= )
при использовании кода
fig, ax = plt.subplots(figsize =...
Пытаюсь сделать 2 -й строкой 1 Col -Sublot с GridSpec и продолжайте получать ошибку
ValueError: Number of rows must be a positive integer, not GridSpec(2, 1, height_ratios= )
При использовании кода
fig, ax = plt.subplots(figsize = (8,6))
gs =...
Пытаюсь сделать 2 -й строкой 1 Col -Sublot с GridSpec и продолжайте получать ошибку
ValueError: Number of rows must be a positive integer, not GridSpec(2, 1, height_ratios= )
При использовании кода
fig, ax = plt.subplots(figsize = (8,6))
gs =...