Merge branch 'pr-4275'
This commit is contained in:
commit
4b057bc84e
2 changed files with 11 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ def _build_stream_load_kwargs(
|
|||
"path": dataset_name,
|
||||
"split": split,
|
||||
"streaming": True,
|
||||
"trust_remote_code": False,
|
||||
}
|
||||
if data_file:
|
||||
kwargs["data_files"] = [data_file]
|
||||
|
|
|
|||
10
studio/backend/tests/test_data_recipe_seed.py
Normal file
10
studio/backend/tests/test_data_recipe_seed.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_seed_inspect_load_kwargs_disables_remote_code_execution():
|
||||
seed_route = Path("studio/backend/routes/data_recipe/seed.py").read_text()
|
||||
|
||||
assert '"trust_remote_code": False' in seed_route
|
||||
Loading…
Add table
Add a link
Reference in a new issue