Download scripts/validate.py from dipeshsukhia/Sukhia: direct link, hf CLI and curl.
- Browser
- Download file 977 Bytes
-
https://huggingface.co/dipeshsukhia/Sukhia/resolve/main/scripts/validate.py
- Command line
-
hf download hf://dipeshsukhia/Sukhia/scripts/validate.py
-
curl -L -o validate.py https://huggingface.co/dipeshsukhia/Sukhia/resolve/main/scripts/validate.py
977 Bytes
| #!/usr/bin/env python3 | |
| """Dependency-free repository checks for SukhiaV1.0.""" | |
| from pathlib import Path | |
| import json, sys | |
| ROOT = Path(__file__).resolve().parents[1] | |
| required = ["Modelfile", "README.md", "MODEL_CARD.md", "LICENSE", "prompts/system.md", "evals/tasks.json"] | |
| missing = [p for p in required if not (ROOT / p).is_file()] | |
| if missing: | |
| print("Missing required files:", ", ".join(missing)); sys.exit(1) | |
| tasks = json.loads((ROOT / "evals/tasks.json").read_text()) | |
| technologies = {t["technology"] for t in tasks} | |
| expected = {"PHP 8.3+", "Laravel", "Node.js", "NestJS", "React", "Next.js", "Python", "Docker", "Terraform", "TypeScript"} | |
| if technologies != expected: | |
| print("Evaluation coverage mismatch:", sorted(expected - technologies)); sys.exit(1) | |
| if "FROM qwen3:8b" not in (ROOT / "Modelfile").read_text(): | |
| print("Modelfile must use qwen3:8b"); sys.exit(1) | |
| print(f"SukhiaV1.0 checks passed: {len(tasks)} evaluation tasks, {len(technologies)} technologies") | |