Skip to content

Commit 903fd21

Browse files
Update generative-proof-of-concept-CPU-preprocessing-in-memory.py
Fix string parsing and syntax on results of LLM model serialization test.
1 parent daa070a commit 903fd21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generative-proof-of-concept-CPU-preprocessing-in-memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ def create_dataset(raw_text_samples, tokenizer, sample_expansion_batch_size=50,
777777

778778
if result.returncode == 0:
779779
print("✅ Serialization test passed.")
780-
result(result.stdout)
780+
print(str(result.stdout))
781781
else:
782782
print("❌ Serialization test failed.")
783-
print("STDERR:", result.stderr)
783+
print("STDERR:", str(result.stderr))
784784

785785
# Return the final result to Optuna
786786
return result_phase_i_b

0 commit comments

Comments
 (0)