Skip to content

[tests, docker, docs, scripts, ci] chore: remove internal-only assets, add sensitive scan - #174

Open
NeosZhang wants to merge 2 commits into
baidu-baige:masterfrom
NeosZhang:sanitize/internal-refs
Open

[tests, docker, docs, scripts, ci] chore: remove internal-only assets, add sensitive scan#174
NeosZhang wants to merge 2 commits into
baidu-baige:masterfrom
NeosZhang:sanitize/internal-refs

Conversation

@NeosZhang

Copy link
Copy Markdown

Summary

  • Removes internal-only build/CI assets and internal-infrastructure references that external users cannot reach or reproduce, so a fresh clone is self-contained.
  • Replaces hardcoded internal endpoints and cluster paths with neutral placeholders or opt-in environment variables rather than deleting the functionality.
  • Rebased as two focused commits directly on top of master; no internal history is carried over.

Changes

Packaging / infra

  • Drop the internal pip index and --trusted-host from ops/requirements.txt.
  • Remove the internal XPU docker assets (docker/Dockerfile.xpu, docker/xpu_packages.json, docker/fix_xpytorch_hook.sh, docker/__init__.py) and the P800 install tutorial.
  • Ignore local AI-assistant rule directories in .gitignore.

Examples / configs

  • examples/kimi_k2.x/kimi_k2.{5,6}/checkpoint_convert/nvfp4_ptq/install_nvfp4_modelopt_deps.sh: blobfile now installs from the default PyPI index. BLOBFILE_PIP_INDEX / BLOBFILE_PIP_TRUSTED_HOST are optional overrides for users behind a local mirror; the plain-HTTP mirror is no longer a baked-in default.
  • Replace internal cluster paths / dataset locations with placeholders in examples/embodied/xvla/xvla_soft_fold/metadata.json, examples/internvl3.5/finetuning/, configs/models/deepseek4/, tools/data_preprocess/vlm/offline_packing/, and tests/embodied/config/prepare.sh.

LLM/VLM E2E suite (tests/llm_vlm/)

  • Remove prepare_env.sh and download_datasets.sh, which bootstrapped models and datasets from internal object storage, plus their invocations in main_start.sh and pipeline_runner.sh.
  • Drop the --ak / --sk credential passthrough and --skip_env from pipeline_runner.sh (unused once the bootstrap is gone).
  • Remove per-model bos_path entries from the default and optional configs.
  • Remove the internal docker build assets and the baselines for an unreleased accelerator.
  • README.md now states that datasets, HF base models, and converted checkpoints must be provisioned before running the suite.

Test Plan

  • bash -n passes on every modified shell script.
  • Argument assembly in install_nvfp4_modelopt_deps.sh verified for all three cases:
    • no override: pip install blobfile -q
    • index only: pip install blobfile -q -i <index>
    • index + trusted host: pip install blobfile -q -i <index> --trusted-host <host>
      The array is seeded with -q so it is never empty, which would fail under set -u on bash 4.2.
  • Grepped the resulting tree for dangling references to every removed file, flag, and path; none remain.
  • The full E2E suite was not executed — it requires a multi-GPU cluster with pre-provisioned checkpoints.

@github-actions github-actions Bot added bug Something isn't working ci docker documentation Improvements or additions to documentation model xpu labels Aug 20, 2026
@nullnonenilNULL nullnonenilNULL changed the title [tests, docker, docs, scripts, ops] chore: remove internal-only assets and references [tests, docker, docs, scripts, ops] chore: remove some assets and references Aug 20, 2026
@Zachary-wW Zachary-wW self-assigned this Aug 20, 2026
@NeosZhang
NeosZhang force-pushed the sanitize/internal-refs branch 2 times, most recently from 45e43a6 to ed0af71 Compare August 20, 2026 12:44
…, add sensitive scan

Drop internal build/CI assets and replace internal-infrastructure defaults
with neutral placeholders so a fresh clone is self-contained for external
users, and add a scanner that keeps internal-only strings from coming back.

Packaging / infra:
- remove the internal XPU docker assets and the P800 install tutorial
  (both the English and Chinese copies), and drop the toctree entries and
  cross-links that pointed at it
- ignore local AI-assistant rule directories

Sensitive-information scan:
- add ci/sensitive_scan.py and ci/sensitive_rules.py, which flag internal
  hostnames and package mirrors, internal registries, private object-storage
  locations, corporate emails, developer home paths and credential material;
  findings are error- or warn-severity, with inline
  `# sensitive-scan: allow[rule-id]` and an ALLOWLIST for reviewed exceptions
- add skills/sensitive-scan/SKILL.md documenting how to run and extend it
- allowlist the `bos:/$BOS_BUCKET/...` uploads in the workflows: the bucket
  name comes from a repository variable, not from the source

Examples / configs:
- default the Kimi NVFP4 blobfile install to the public PyPI index, with
  BLOBFILE_PIP_INDEX / BLOBFILE_PIP_TRUSTED_HOST as opt-in mirror overrides
- replace internal cluster paths and dataset locations in examples, configs
  and tests/embodied/config/prepare.sh with placeholders

LLM/VLM E2E suite:
- remove prepare_env.sh / download_datasets.sh, which bootstrapped models
  and datasets from internal object storage, plus their invocations in
  main_start.sh and pipeline_runner.sh
- drop the --ak / --sk credential passthrough and --skip_env
- remove per-model bos_path entries from the test configs
- remove the internal docker build assets and unreleased-chip baselines
- remove the internal pipeline launcher (ipipe_start.sh), its PyTorchJob
  yaml templates, and the internal notification helpers
  (utils/send_msg.sh, utils/HiRobotApi.py), along with the k8s/pipeline
  plumbing they required in common/common.sh and main.py
@NeosZhang
NeosZhang force-pushed the sanitize/internal-refs branch from ed0af71 to d24daa1 Compare August 20, 2026 13:18
@NeosZhang NeosZhang changed the title [tests, docker, docs, scripts, ops] chore: remove some assets and references [tests, docker, docs, scripts, ci] chore: remove internal-only assets, add sensitive scan Aug 20, 2026
@Zachary-wW
Zachary-wW force-pushed the sanitize/internal-refs branch from 91b1043 to fe2754a Compare August 21, 2026 08:23
@Zachary-wW
Zachary-wW force-pushed the sanitize/internal-refs branch from fe2754a to 2d86230 Compare August 21, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci docker documentation Improvements or additions to documentation model xpu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants