Skip to content

Add xcodec2 model#44178

Open
ebezzam wants to merge 133 commits into
huggingface:mainfrom
ebezzam:add-xcodec2
Open

Add xcodec2 model#44178
ebezzam wants to merge 133 commits into
huggingface:mainfrom
ebezzam:add-xcodec2

Conversation

@ebezzam

@ebezzam ebezzam commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Re-opening #37868

TODO

  • recompute expected outputs
  • passthrough code given new conventions
  • check for unused code paths / configuration parameters

Original checkpoint: https://huggingface.co/HKUSTAudio/xcodec2
Original modeling code: https://huggingface.co/HKUSTAudio/xcodec2/blob/main/modeling_xcodec2.py

@ebezzam

ebezzam commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

run-slow: dac, encodec, higgs_audio_v2_tokenizer, mimi, pe_audio, qwen2_5_omni, qwen3_omni_moe, seamless_m4t, wav2vec2_bert, xcodec, xcodec2

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/dac", "models/encodec", "models/higgs_audio_v2_tokenizer", "models/mimi", "models/pe_audio", "models/qwen2_5_omni", "models/qwen3_omni_moe", "models/seamless_m4t", "models/wav2vec2_bert", "models/xcodec", "models/xcodec2"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN caea5740 workflow commit (merge commit)
PR dc3378df branch commit (from PR)
main c2fafabb base commit (on main)

Model CI Report

3 new failed tests from this PR 😭

  • wav2vec2_bert:
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_cpu_offload (✅ ⟹ ❌)
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_disk_offload_bin (✅ ⟹ ❌)
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_disk_offload_safetensors (✅ ⟹ ❌)

@ebezzam

ebezzam commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

run-slow: wav2vec2_bert

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/wav2vec2_bert", "models/xcodec2"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN e75260e4 workflow commit (merge commit)
PR 512c681c branch commit (from PR)
main 612c371a base commit (on main)

Model CI Report

2 new failed tests from this PR 😭

  • wav2vec2_bert:
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_disk_offload_safetensors (✅ ⟹ ❌)
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_num_layers_is_small (✅ ⟹ ❌)

@ebezzam

ebezzam commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

run-slow: wav2vec2_bert

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/wav2vec2_bert", "models/xcodec2"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 2f3e7a72 workflow commit (merge commit)
PR a31ed1c3 branch commit (from PR)
main d87f670d base commit (on main)

Model CI Report

2 new failed tests from this PR 😭

  • wav2vec2_bert:
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_cpu_offload (✅ ⟹ ❌)
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_disk_offload_safetensors (✅ ⟹ ❌)

self.tdnn_kernel = tdnn_kernel
self.tdnn_dilation = tdnn_dilation
self.xvector_output_dim = xvector_output_dim
self.position_embeddings_type = position_embeddings_type

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not being used, it is rather passed to the method for preparing the config to try different types (see here)

@ebezzam

ebezzam commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

run-slow: wav2vec2_bert

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/wav2vec2_bert", "models/xcodec2"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN a8c493b2 workflow commit (merge commit)
PR 78c3ed98 branch commit (from PR)
main 353b1532 base commit (on main)

✅ No failing test specific to this PR 🎉 👏 !

@ebezzam

ebezzam commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

run-slow: wav2vec2_bert

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: auto, dac, encodec, higgs_audio_v2_tokenizer, mimi, pe_audio, qwen2_5_omni, qwen3_omni_moe, seamless_m4t, wav2vec2_bert, xcodec, xcodec2

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/wav2vec2_bert", "models/xcodec2"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 6f8a7fad workflow commit (merge commit)
PR 6d9c51c1 branch commit (from PR)
main c21da1b5 base commit (on main)

Model CI Report

1 new failed tests from this PR 😭

  • wav2vec2_bert:
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_labels_out_of_vocab (✅ ⟹ ❌)

@ebezzam

ebezzam commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

run-slow: wav2vec2_bert

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/wav2vec2_bert", "models/xcodec2"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 7bb5864a workflow commit (merge commit)
PR 2fe0150a branch commit (from PR)
main c21da1b5 base commit (on main)

Model CI Report

1 new failed tests from this PR 😭

  • wav2vec2_bert:
    tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py::Wav2Vec2BertModelTest::test_labels_out_of_vocab (✅ ⟹ ❌)

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.

6 participants