MCPcopy
hub / github.com/zai-org/ChatGLM2-6B / print_dataset_example

Function print_dataset_example

ptuning/main.py:215–219  ·  view source on GitHub ↗
(example)

Source from the content-addressed store, hash-verified

213 return model_inputs
214
215 def print_dataset_example(example):
216 print("input_ids", example["input_ids"])
217 print("inputs", tokenizer.decode(example["input_ids"]))
218 print("label_ids", example["labels"])
219 print("labels", tokenizer.decode(example["labels"]))
220
221 if training_args.do_train:
222 if "train" not in raw_datasets:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected