Instructions to use Vikhrmodels/Borealis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vikhrmodels/Borealis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Vikhrmodels/Borealis", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Vikhrmodels/Borealis", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,6 +45,7 @@ proc = extractor(
|
|
| 45 |
sampling_rate=sr,
|
| 46 |
padding="max_length",
|
| 47 |
max_length=480_000,
|
|
|
|
| 48 |
return_tensors="pt",
|
| 49 |
)
|
| 50 |
|
|
|
|
| 45 |
sampling_rate=sr,
|
| 46 |
padding="max_length",
|
| 47 |
max_length=480_000,
|
| 48 |
+
return_attention_mask=True,
|
| 49 |
return_tensors="pt",
|
| 50 |
)
|
| 51 |
|