Skip to content

Commit

Permalink
Fix: Fix FalconMamba training issues due to incompatible kernels (h…
Browse files Browse the repository at this point in the history
…uggingface#33195)

* fix FM training kernels

* fix copies

* fix copies

* propagate to slow path

* make it BC

* add comment

* fix test
  • Loading branch information
younesbelkada authored Sep 5, 2024
1 parent 43df47d commit 47b0964
Show file tree
Hide file tree
Showing 6 changed files with 597 additions and 11 deletions.
15 changes: 15 additions & 0 deletions src/transformers/kernels/falcon_mamba/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# coding=utf-8
# Copyright 2024 Tri Dao, Albert Gu, Technological Innovation Institute and HuggingFace Inc. team.
#
# 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 .selective_scan_with_ln_interface import mamba_inner_fn
Loading

0 comments on commit 47b0964

Please sign in to comment.