Upload code/build_sft_v20_dataset.py with huggingface_hub
Browse files608 unmodified lines609610611612612613614615608 unmodified lines if len(pool) < cap: print(f" Loading open-thoughts/OpenThoughts (need {cap - len(pool)} more)...") try: ds_ot = load_dataset("open-thoughts/OpenThoughts-114k", split="train", streaming=True) ds_ot = load_dataset("open-thoughts/Open-Thoughts-114k", split="train", streaming=True) CODE_KWS = {"python", "code", "function", "sql", "algorithm", "class ", "def "} MATH_KWS = {"calculate", "solve", "equation", "integer", "prime", "probability"} for row in ds_ot:code/build_sft_v20_dataset.py+1-1