Skip to content

Support Baichuan model #348

@JoeZhang-0x000

Description

@JoeZhang-0x000

Summary

Split from #332 — add Baichuan causal LM model support only.

Tasks

  • Add Baichuan model config adapter (csrc/models/baichuan/)
  • Register "baichuan" in config_factory.cpp classic_models list
  • Register "baichuan" in python/infinilm/auto_config.py
  • Add Baichuan weight remapping (W_packq/k/v_proj) in modeling_utils.py
  • Update examples/jiuge.py for Baichuan tokenization and chat prompt handling

Parent issue: #332

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions