Skip to content

safetensors: coordinate support for new safetensors-parser (extracted/copied from corinth-canal as inspiration) #9

Description

@rmems

Summary

Coordination/planning issue: align on the extraction of reusable Safetensors header inspection, manifest generation, and MoE candidate discovery logic from the experimental rmems/corinth-canal (as source of inspiration / one-way copy) into a new dedicated Limen-Neural safetensors-parser crate (parallel to how engram-parser was extracted for GGUF).

Clarification: No dependency from corinth-canal on the new crate. corinth-canal keeps reference copy per its PROMOTION_RULES. The new crate is for reusable use by cortex-tensor (future multi-format MoE support) and others.

See primary:

Context

  • cortex-tensor is currently GGUF-only in src/moe/checkpoint.rs / adapter (see its README and open Define tensor + MoE traits inside this crate #7 traits issue, which already calls out reusability with engram-parser).
  • Safetensors support in corinth-canal enables the same Router/CheckpointBackend for many local models in experiments (see corinth #40, safetensors_lineup configs, etc.).
  • The logic is general and reusable (header parse + deterministic manifest + name/shape-based MoE router/expert labeling + family detection), exactly analogous to the GGUF parser surface moved to engram-parser.
  • No Limen-Neural crate currently provides it.

Related

Goal

Document the relationship so that when cortex-tensor wants multi-checkpoint (Safetensors + GGUF) support for its MoE router, it can depend on the new safetensors-parser (plus engram-parser) rather than duplicating parser code. Planning/alignment only for now.

Non-goals

  • Do not implement the dep or full Safetensors backend in cortex in this issue.
  • Do not change corinth-canal.

Acceptance criteria

Validation

Suggested branch

docs/safetensors-parser-coordination

References

  • Detailed plan in engram-parser session plan.md.
  • corinth-canal#116 for the extraction tracking.

Coordination issue for Safetensors extraction (copy from corinth-canal inspiration) to keep Limen-Neural reusable libs aligned.

Metadata

Metadata

Assignees

Labels

apiAPI changes or trait workmodularizationWork to make repos more modular and overlapping

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions