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-ASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use okestro-ai-lab/FastSLM-ASR with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("okestro-ai-lab/FastSLM-ASR", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -223,7 +223,7 @@ input_ids = tokenizer.apply_chat_template(
|
|
| 223 |
prompt,
|
| 224 |
add_generation_prompt=True,
|
| 225 |
tokenize=True,
|
| 226 |
-
|
| 227 |
).to(model.device)
|
| 228 |
|
| 229 |
# 3. Perform inference
|
|
|
|
| 223 |
prompt,
|
| 224 |
add_generation_prompt=True,
|
| 225 |
tokenize=True,
|
| 226 |
+
return_tensors='pt'
|
| 227 |
).to(model.device)
|
| 228 |
|
| 229 |
# 3. Perform inference
|