Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,8 @@
title: Kyutai Speech-To-Text
- local: model_doc/lasr
title: LASR
- local: model_doc/lfm2_audio
title: Lfm2Audio
- local: model_doc/mimi
title: Mimi
- local: model_doc/mms
Expand Down
67 changes: 67 additions & 0 deletions docs/source/en/model_doc/lfm2_audio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!--Copyright 2026 the HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be rendered properly in your Markdown viewer.

-->


# Lfm2Audio

## Overview

The Lfm2Audio model was proposed in [<INSERT PAPER NAME HERE>](<INSERT PAPER LINK HERE>) by <INSERT AUTHORS HERE>.
<INSERT SHORT SUMMARY HERE>

The abstract from the paper is the following:

<INSERT PAPER ABSTRACT HERE>

Tips:

<INSERT TIPS ABOUT MODEL HERE>

This model was contributed by [INSERT YOUR HF USERNAME HERE](https://huggingface.co/<INSERT YOUR HF USERNAME HERE>).
The original code can be found [here](<INSERT LINK TO GITHUB REPO HERE>).

## Usage examples

<INSERT SOME NICE EXAMPLES HERE>

## Lfm2AudioConfig

[[autodoc]] Lfm2AudioConfig

## Lfm2AudioDepthConfig

[[autodoc]] Lfm2AudioDepthConfig

## Lfm2AudioForCausalLM

[[autodoc]] Lfm2AudioForCausalLM

## Lfm2AudioForConditionalGeneration

[[autodoc]] Lfm2AudioForConditionalGeneration

## Lfm2AudioModel

[[autodoc]] Lfm2AudioModel
- forward

## Lfm2AudioPreTrainedModel

[[autodoc]] Lfm2AudioPreTrainedModel
- forward
1 change: 1 addition & 0 deletions src/transformers/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
from .led import *
from .levit import *
from .lfm2 import *
from .lfm2_audio import *
from .lfm2_moe import *
from .lfm2_vl import *
from .lightglue import *
Expand Down
2 changes: 2 additions & 0 deletions src/transformers/models/auto/modeling_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ class _BaseModelWithGenerate(PreTrainedModel, GenerationMixin):
("led", "LEDModel"),
("levit", "LevitModel"),
("lfm2", "Lfm2Model"),
("lfm2_audio", "Lfm2AudioModel"),
("lfm2_moe", "Lfm2MoeModel"),
("lfm2_vl", "Lfm2VlModel"),
("lightglue", "LightGlueForKeypointMatching"),
Expand Down Expand Up @@ -802,6 +803,7 @@ class _BaseModelWithGenerate(PreTrainedModel, GenerationMixin):
("kimi_linear", "KimiLinearForCausalLM"),
("laguna", "LagunaForCausalLM"),
("lfm2", "Lfm2ForCausalLM"),
("lfm2_audio", "Lfm2AudioForCausalLM"),
("lfm2_moe", "Lfm2MoeForCausalLM"),
("llama", "LlamaForCausalLM"),
("llama4", "Llama4ForCausalLM"),
Expand Down
28 changes: 28 additions & 0 deletions src/transformers/models/lfm2_audio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2026 the HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import TYPE_CHECKING

from ...utils import _LazyModule
from ...utils.import_utils import define_import_structure


if TYPE_CHECKING:
from .configuration_lfm2_audio import *
from .modeling_lfm2_audio import *
else:
import sys

_file = globals()["__file__"]
sys.modules[__name__] = _LazyModule(__name__, _file, define_import_structure(_file), module_spec=__spec__)
Binary file added src/transformers/models/lfm2_audio/asr.wav
Binary file not shown.
Loading
Loading