Skip to content

Add author, license, and enhanced model metadata support#4

Merged
ChinChangYang merged 1 commit intomasterfrom
feature/metadata-author-license
Jan 18, 2026
Merged

Add author, license, and enhanced model metadata support#4
ChinChangYang merged 1 commit intomasterfrom
feature/metadata-author-license

Conversation

@ChinChangYang
Copy link
Owner

Summary

  • Add --author and --license CLI options for setting model metadata
  • Enhance model description with architecture info (blocks, channels, source filename)
  • Populate Core ML metadata fields: author, license, versionString (model name)
  • Add user-defined metadata: model version, precision, meta encoder version

Changes

  • Options.hpp: New fields for author, license, source filename, and model architecture
  • Converter.cpp: Extract and populate model info from KataGo binary
  • CoreMLSerializer.cpp: Enhanced metadata generation with comprehensive model info
  • katago2coreml.cpp: CLI argument parsing for --author and --license
  • README.md: Documentation for new CLI options and ConversionOptions fields

Example Usage

katago2coreml --author "Your Name" --license MIT model.bin.gz KataGo.mlpackage

Test Plan

  • Build and verify CLI accepts new options
  • Confirm metadata appears correctly in generated .mlpackage files
  • Verify backward compatibility (options are optional)

🤖 Generated with Claude Code

- Add --author and --license CLI options for setting model metadata
- Include model architecture info (blocks, channels) in description
- Add source filename, model version, and precision info to metadata
- Populate versionString with KataGo model name

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChinChangYang ChinChangYang merged commit f983abb into master Jan 18, 2026
1 check passed
@ChinChangYang ChinChangYang deleted the feature/metadata-author-license branch January 18, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant