mirror of
https://github.com/deepseek-ai/DeepSeek-Coder.git
synced 2026-11-05 00:57:19 +00:00
[PR #723] Remove hard-coded trust_remote_code=True #294
Labels
No labels
documentation
ENV
pull-request
research question
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-Coder#294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepSeek-Coder/pull/723
Author: @Dextheking1
Created: 10/23/2026
Status: 🔄 Open
Base:
main← Head:remove-hardcoded-trust-remote-code📝 Commits (1)
5699e12remove hard-coded trust_remote_code=True from model loading📊 Changes
8 files changed (+18 additions, -20 deletions)
View changed files
📝
Evaluation/HumanEval/eval_pal.py(+1 -1)📝
Evaluation/HumanEval/humaneval.py(+1 -1)📝
Evaluation/LeetCode/vllm_inference.py(+1 -2)📝
Evaluation/MBPP/eval_pal.py(+1 -1)📝
Evaluation/MBPP/mbpp.py(+1 -1)📝
Evaluation/PAL-Math/run.py(+2 -2)📝
README.md(+10 -10)📝
finetune/finetune_deepseekcoder.py(+1 -2)📄 Description
Loading a checkpoint should not silently run code from the checkpoint repo.
This removes trust_remote_code=True from the eval scripts, the finetune script, and the README examples. Model and tokenizer loading now uses the default, which does not execute remote code.
Anyone with a checkpoint that needs remote code can still pass the flag in their own call.
Changed files:
Syntax checked the changed python files before pushing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.