Audio-Text-to-Text
Transformers
Safetensors
English
Korean
fastslm
feature-extraction
audio
text-generation
custom_code
Eval Results
Instructions to use okestro-ai-lab/FastSLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use okestro-ai-lab/FastSLM with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("okestro-ai-lab/FastSLM", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update modeling_fastslm.py
Browse files- modeling_fastslm.py +1 -1
modeling_fastslm.py
CHANGED
|
@@ -289,7 +289,7 @@ class SpeechEncoder(nn.Module):
|
|
| 289 |
class FastSLMPreTrainedModel(PreTrainedModel):
|
| 290 |
config_class = FastSLMConfig
|
| 291 |
base_model_prefix = "fastslm"
|
| 292 |
-
|
| 293 |
def _init_weights(self, module):
|
| 294 |
if isinstance(module, nn.Linear):
|
| 295 |
nn.init.normal_(module.weight, std=0.02)
|
|
|
|
| 289 |
class FastSLMPreTrainedModel(PreTrainedModel):
|
| 290 |
config_class = FastSLMConfig
|
| 291 |
base_model_prefix = "fastslm"
|
| 292 |
+
self.post_init()
|
| 293 |
def _init_weights(self, module):
|
| 294 |
if isinstance(module, nn.Linear):
|
| 295 |
nn.init.normal_(module.weight, std=0.02)
|