sinchan-env / submit.md
Gladiator-codes's picture
Upload folder using huggingface_hub
ecfeab6 verified
|
Raw History Blame Contribute Delete
10.2 kB

πŸš€ FINAL SUBMISSION CHECKLIST

Generated from repository scan: openenv-sinchan-env @ E:\OprnEnvHackathon\sinchan_env. This file is listed in .gitignore and must not be committed.


0. OpenEnv (dependency version)

  • Package: openenv-core[core]>=0.2.3 in pyproject.toml (latest pin declared in this repo: 0.2.3+; resolve exact installed build in your venv with pip show openenv-core before submitting).
  • Server integration: openenv.core.env_server.http_server.create_app in server/app.py.
  • Note: server/requirements.txt still has >=0.2.2 β€” align to 0.2.3 in deploy if you use that file standalone.

1. 🌐 Hugging Face Space (Environment)

  • URL (cards / Space page): https://huggingface.co/spaces/Gladiator-codes/sinchan-env
  • URL (primary runtime UI β€” use for demos / best UX): https://gladiator-codes-sinchan-env.hf.space/play (β†’ /sinchan-ui/)
  • URL (Space root / other UIs): https://gladiator-codes-sinchan-env.hf.space/
  • Status (checked 2026-04-26, automated GET):
    • Health: GET /health β†’ 200 (body: {"status":"healthy"} β€” not "ok"; README is slightly out of date).
    • UI routes:
      • /play β€” redirects (302) to /sinchan-ui/; final page 200. Both the redirect and the static UI work.
      • /sinchan-ui/ β€” 200 (Crayon-style UI).
    • Other: /gradio β†’ 307 to /gradio/; /web β†’ 307 (OpenEnv web UI; follow in browser).
  • Checklist:
    • Loads correctly (health + key routes respond)
    • UI present (/play β†’ /sinchan-ui/, /gradio, /web)
    • Environment runnable (server up; you must still click through UI for full manual QA)

⚠️ Note: The hackathon list calls out /play and /sinchan-ui: /play redirects to /sinchan-ui/ β€” both are valid; use either.


2. πŸ§ͺ Training Notebook

  • URL (submission notebook): https://colab.research.google.com/drive/1BF3I0M1Md2hG_rq7oldPVD-dJHsdLl0g?usp=sharing
  • Platform: Colab (GitHub-mirror of the same project: training/ShinChan_GRPO_Training.ipynb on the repo, if you need file identity).
  • Training stack: Hugging Face TRL GRPOTrainer β€” training/train_sinchan.py (not Unsloth; Unsloth is optional per README only).
  • Checklist (not re-executed in this scan):
    • Runs top-to-bottom
    • Installs dependencies
    • Connects to environment (ENV_URL / remote Space as configured in the notebook)

Fallback β€” lightweight run (β‰ˆ10 min, AMD Radeon 680M / tight laptop)

PyTorch on Windows + AMD iGPU often has no stable CUDA path; treat CPU as the safe default for a short real run (real env rollouts, real metrics.jsonl). If you have a working ROCm or DirectML setup, you may omit --use-cu and adjust.

PowerShell (repo root), with Space as env (or set ENV_URL to a local uv run server):

pip install -e ".[training]"
$env:ENV_URL = "https://gladiator-codes-sinchan-env.hf.space"
python training/train_sinchan.py `
  --env-url $env:ENV_URL `
  --model Qwen/Qwen3-0.6B `
  --output-dir training/artifacts/fallback_lite `
  --max-steps 12 `
  --dataset-size 12 `
  --num-generations 1 `
  --max-completion-length 192 `
  --grad-accum 1 `
  --per-device-train-batch-size 1 `
  --learning-rate 1e-5 `
  --precision fp32 `
  --use-cpu `
  --seed 42
python training/plot_metrics.py --run-dir training/artifacts/fallback_lite --assets-dir assets

This is intentionally tiny (few steps, small dataset, 1 generation) so logs finish quickly; you still get non-placeholder metrics.jsonl and PNGs if plotting succeeds. If it still exceeds 10 minutes (slow network to the Space), point --env-url at a local server on 127.0.0.1 and re-run.


3. πŸ“Š Training Evidence

Reward curve

  • Expected path (per README): assets/reward_curve_total.png
  • Status in repo (scan): MISSING β€” the assets/ directory has only assets/README.md; no reward_curve_total.png committed.

Loss curve

  • Expected path (per README): assets/loss_curve.png
  • Status in repo (scan): MISSING β€” not present.

Verification (requires you to add PNGs and/or link hosted copies)

  • Rewards increase over time (inspect metrics.jsonl and/or plot)
  • Loss changes meaningfully
  • Training is not static/fake (corroborate with run_metadata.json, trainer_state.json, and non-constant metrics.jsonl lines)

Proof of real training (what reviewers should see): JSONL logs with step-to-step variation and metadata (timestamps, env URL) β€” not a single repeated scalar. Right now, committed artifacts are gitignored (training/artifacts/**); you must generate a run, plot, and add small PNGs to assets/ or provide public URLs to evidence hosted elsewhere (no large files in git).


4. 🧠 Training Quality Verdict

Honest statement: A real TRL+OpenEnv training path is implemented (train_sinchan.py, Colab, staged scripts). Curves on disk for submission are not present in this repository snapshot β€” so learning cannot be signed off from the repo alone until you add assets/reward_curve_total.png and assets/loss_curve.png (or equivalent public evidence).


5. πŸ“– README Quality

  • Problem clearly explained
  • Environment explained
  • Training process explained
  • Results / evidence section (points to assets/ and eval_summary.json)
  • Links included:
    • HF Space β€” yes (cards + runtime)
    • Notebook β€” Colab
    • blog.md β€” Space URL + GitHub blog.md (after README update in this pass)

Gap: README says health returns "ok"; live Space returns "healthy" β€” minor inconsistency to fix for polish.


6. πŸ“ Blog / Demo


7. πŸ“¦ REPO CLEANLINESS

  • No large model weights in tree (per README; training/artifacts ignored)
  • trash/ in .gitignore (folder may or may not exist)
  • .gitignore updated β€” includes submit.md
  • Broken scripts β€” not fully audited; pytest smoke 8 passed locally after blog route change

8. ❗ FINAL VALIDATION (do manually before send)

  • All links work in incognito / logged-out
  • HF Space cold start waited out; UIs open
  • Training evidence visible (PNG and/or public Hub paths)
  • README scannable in < 3 min

πŸ”₯ FINAL SUBMISSION LINKS (COPY THIS)

Item URL
Hugging Face Space (cards / Hub page) https://huggingface.co/spaces/Gladiator-codes/sinchan-env
Hugging Face Space (primary UI β€” /play β†’ crayon UI) https://gladiator-codes-sinchan-env.hf.space/play
Hugging Face Space (root / alt UIs: /web, /gradio) https://gladiator-codes-sinchan-env.hf.space/
Training notebook (Colab β€” submission copy) https://colab.research.google.com/drive/1BF3I0M1Md2hG_rq7oldPVD-dJHsdLl0g?usp=sharing
Training notebook (repo file mirror) https://github.com/Sarthaks-24/sinchan_env/blob/main/training/ShinChan_GRPO_Training.ipynb
Blog (served on Space) https://gladiator-codes-sinchan-env.hf.space/blog.md
Blog (source in GitHub β€” blog.md) https://github.com/Sarthaks-24/sinchan_env/blob/main/blog.md
Repository https://github.com/Sarthaks-24/sinchan_env

⚠️ MISSING / RISK ITEMS

  1. assets/reward_curve_total.png β€” missing in repo.
  2. assets/loss_curve.png β€” missing in repo.
  3. No committed training/artifacts/** (by design in .gitignore); you must produce a run and either commit small PNG/JSON evidence or link external storage.
  4. README vs live /health body (ok vs healthy) β€” inconsistency.
  5. server/requirements.txt vs pyproject.toml OpenEnv lower bound β€” version drift risk.
  6. Colab β€œruns top-to-bottom” β€” not re-verified in this pass.

🧠 FINAL VERDICT

  • CHOSEN: NEEDS FIXES ⚠️

Why: Public Space, notebook path, blog, OpenEnv+TRL wiring, and README are in good shape, but required training plots are not in the repository, so submission completeness for β€œevidence of training” is not met until you add real curves (and ideally point to a real metrics.jsonl summary or hosted artifacts).


⚑ LAST ACTION PLAN (do these in order)

  1. Run a training job (Colab and/or the fallback command above) until training/artifacts/<run>/metrics.jsonl exists and shows varying metrics.
  2. Run python training/plot_metrics.py --run-dir ... --assets-dir assets and commit the small PNGs (assets/reward_curve_total.png, assets/loss_curve.png) if rules allow, or upload plots to a public URL and paste those links into the hackathon form + README.
  3. Re-run training/stage4_evaluate.py (if part of your story) and keep eval_summary.json evidence consistent with the README’s β€œBefore vs after” table.
  4. In a private window, open Space, Colab, blog.md, and GitHub links from section 8.
  5. Optional polish: set README health example to healthy; bump openenv in server/requirements.txt to >=0.2.3.
  6. Confirm submit.md is not tracked: git status should not list it; if it was ever added, run git rm --cached submit.md.
  7. Submit.

End of submit.md.