Skip to content

CICD-429 · Model configuration validation ​

Encyclopedia · AI and LLM application pipelines · All snippets

Previous · CICD-428 · Next · CICD-430

1. Where it fits ​

  • Placement CI model config gate.
  • Prerequisites approved synthetic evaluation data, authorized model artifacts and pinned runtime tools.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
jq -e '.model_type | IN("llama","mistral","qwen2")' model/config.json
jq -e '.max_position_embeddings >= 2048 and .vocab_size > 0' model/config.json

3. How it works ​

The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.

4. Verify the result ​

Use approved architecture and context constraints for the actual engine. Add tokenizer and tensor compatibility checks separately.

Validation syntax-validated (Bash parse). Status definitions.