-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Goal
Build tools that reduce friction for card authors and enable automated validation.
Core Tools
1. Schema Validator
Input: JSON/JSON-LD model card
Output: Validation report
Features:
- JSON Schema validation against spec
- Link checking (do evidence URLs resolve?)
- Disclosure completeness score calculation
- Tier consistency checking (claimed tier vs actual disclosure)
- MUST/SHOULD/CAN compliance summary
imc validate card.json --tier=2 --check-links2. Card Generator (Interactive)
Input: Prompts + author responses
Output: Valid JSON-LD card
Features:
- CLI wizard walking through questions
- Web form interface
- Import from existing formats (HF model card YAML, CycloneDX)
- Suggest evidence links from common sources
imc init --tier=1 --base-model=meta-llama/Llama-3-8B3. Card Renderer
Input: JSON-LD card
Output: Human-readable formats
Features:
- Markdown (GitHub/HF compatible)
- HTML (standalone page)
- PDF (for compliance documentation)
- Disclosure heatmap visualization
imc render card.json --format=markdown --output=MODEL_CARD.md4. Diff Tool
Input: Two card versions
Output: Semantic diff
Features:
- Highlight changed disclosures
- Track disclosure completeness over time
- Changelog generation
imc diff card-v1.json card-v2.jsonImplementation Considerations
Language/Framework
- Python likely best for ML ecosystem integration
- Consider: standalone CLI vs library vs both
- Package name:
interrogatory-model-cardsorimc
Dependencies
jsonschemafor validationrequestsfor link checkingjinja2for rendering templatesclickortyperfor CLI
Integration Points
- HuggingFace Hub API (fetch existing cards, push new ones)
- GitHub Actions (CI validation)
- Pre-commit hooks
Deliverables
tools/imc/- Python packagetools/imc/cli.py- command-line interface- GitHub Action for PR validation
- PyPI package (eventually)
Related Issues
- Schema: Croissant/schema.org Extension Design (validator depends on schema)
- Evidence Linking Protocol (link checker implementation)
- Frontend: Interactive Demo Website (may share rendering logic)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels