Instructions to use AnuCaro/Carol_JITAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AnuCaro/Carol_JITAI with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B") model = PeftModel.from_pretrained(base_model, "AnuCaro/Carol_JITAI") - Notebooks
- Google Colab
- Kaggle
Download colab/experimental_data.py from AnuCaro/Carol_JITAI: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/AnuCaro/Carol_JITAI/resolve/main/colab/experimental_data.py
- Command line
-
hf download hf://AnuCaro/Carol_JITAI/colab/experimental_data.py
-
curl -L -o experimental_data.py https://huggingface.co/AnuCaro/Carol_JITAI/resolve/main/colab/experimental_data.py
1.07 kB
| """Explicit synthetic-only smoke-test input. Never creates approval evidence.""" | |
| from pathlib import Path | |
| from jitai_training.review import load_source, LABELS | |
| from jitai_training.reporting import build_reports | |
| EXPERIMENT_ACK = 'I understand this is unreviewed synthetic data, not an approved pilot' | |
| def validate_experimental(source): | |
| source = Path(source) | |
| rows = list(load_source(source).values()) | |
| if len(rows) != 300 or any(r['review_status'] != 'unreviewed' or r['is_synthetic'] is not True for r in rows): | |
| raise ValueError('Experimental path requires the complete 300-row unreviewed synthetic candidate export') | |
| report = build_reports(rows) | |
| if report['automated_status'] != 'passed': | |
| raise ValueError('Experimental candidate validation failed') | |
| for split in ('train', 'validation', 'test'): | |
| if set(report['class_distribution'][split]) != set(LABELS) or any(report['class_distribution'][split][label] < 1 for label in LABELS): | |
| raise ValueError('Missing experimental class/split coverage') | |
| return report | |