|
Download eval/local_intelligence/README.md from arach/training-lab: direct link, hf CLI and curl.
- Browser
- Download file 3.73 kB
-
https://huggingface.co/arach/training-lab/resolve/main/eval/local_intelligence/README.md
- Command line
-
hf download hf://arach/training-lab/eval/local_intelligence/README.md
-
curl -L -o README.md https://huggingface.co/arach/training-lab/resolve/main/eval/local_intelligence/README.md
3.73 kB
Local Intelligence Eval Harness
Canonical home for the reconstructed Use Talkie local-intelligence eval pack.
What lives here:
cards.json: 24 machine-graded Talkie workflow tasksrun_eval.py: provider-agnostic runnerrun_hf_transformers.py: Hugging Face compute runner usingtransformersrun_hf_matrix.py: batch runner for the recommended HF model matrixlaunch_hf_job.py: Hugging Face Jobs launcher for non-notebook cloud runsDockerfile: custom dependency image for repeat HF Jobs runsjob-requirements.txt: pinned runtime deps baked into the custom imagebuild_image.sh: local helper to build the custom image.github/workflows/build-local-intelligence-image.yml: GitHub Actions workflow that publishes the image to GHCRsync_to_hf.py: uploads just this eval harness to a Hugging Face repoupload_results.py: uploads result JSON files back to the HF repograder.py: assertion-based JSON gradertemplate.py: prompt rendering helpersproviders/: Apple, MLX, Ollama, and Hugging Face adapterspush_to_hf.py: export pack for notebook or dataset usehf_compute_quickstart.md: copy-paste guide for HF Pro computenotebook.ipynb: optional notebook entrypoint
Quick examples:
python3 eval/local_intelligence/run_eval.py \
--provider replay \
--replay-file /tmp/local-intelligence-replay.jsonl \
--limit 1 \
--verbose
python3 eval/local_intelligence/launch_hf_job.py \
--sync-code \
--image pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel \
--flavor a10g-small \
--timeout 2h \
--limit 24
Hugging Face Compute
Run a single model on HF compute:
python3 eval/local_intelligence/run_hf_transformers.py \
--model google/gemma-4-E4B-it \
--limit 24 \
--verbose
The HF compute runners record poor benchmark scores without failing the whole job.
Use --fail-on-incomplete only when you explicitly want non-passing evals to exit nonzero.
Custom Image
Build a reusable Jobs image that already contains the runtime dependencies:
chmod +x eval/local_intelligence/build_image.sh
eval/local_intelligence/build_image.sh arach/local-intelligence-eval:latest
docker push arach/local-intelligence-eval:latest
Or publish it from GitHub Actions to GHCR:
ghcr.io/<your-github-owner>/training-lab-local-intelligence-eval:latest
The workflow lives at:
It publishes on:
- manual
workflow_dispatch - pushes to
mainwhen the image files change
Then launch Jobs with that image:
python3 eval/local_intelligence/launch_hf_job.py \
--sync-code \
--image ghcr.io/<your-github-owner>/training-lab-local-intelligence-eval:latest \
--flavor a10g-small \
--timeout 2h \
--limit 24
Run the default model matrix:
python3 eval/local_intelligence/run_hf_matrix.py \
--limit 24 \
--keep-going
Launch the cloud batch job on HF Jobs:
python3 eval/local_intelligence/launch_hf_job.py \
--sync-code \
--image ghcr.io/<your-github-owner>/training-lab-local-intelligence-eval:latest \
--flavor a10g-small \
--timeout 2h \
--limit 24
Recommended first pass:
google/gemma-4-E4B-itnvidia/Llama-3.1-Nemotron-Nano-4B-v1.1Qwen/Qwen3.5-4B-Instruct-2507
If you want results in a separate repo:
python3 eval/local_intelligence/launch_hf_job.py \
--sync-code \
--source-repo-id arach/training-lab \
--results-repo-id arach/training-lab-results \
--image ghcr.io/<your-github-owner>/training-lab-local-intelligence-eval:latest \
--flavor a10g-small \
--timeout 2h \
--limit 24