Instructions to use MrunangG/phi-2-mbux-assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MrunangG/phi-2-mbux-assistant with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "MrunangG/phi-2-mbux-assistant") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -50,7 +50,16 @@ This model is a proof-of-concept designed for demonstration purposes. It's inten
|
|
| 50 |
|
| 51 |
## 🚀 How to Use
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
```python
|
| 56 |
import torch
|
|
|
|
| 50 |
|
| 51 |
## 🚀 How to Use
|
| 52 |
|
| 53 |
+
While the model's core function is text generation, its primary intended use is within a full voice-to-voice pipeline.
|
| 54 |
+
|
| 55 |
+
### Interactive Voice Demo
|
| 56 |
+
For the complete, interactive experience including Speech-to-Text and Text-to-Speech, please visit the live application hosted on Hugging Face Spaces:
|
| 57 |
+
|
| 58 |
+
**➡️ [Live MBUX Gradio Demo](https://huggingface.co/spaces/MrunangG/mbux-gradio-demo)**
|
| 59 |
+
|
| 60 |
+
### Programmatic Use (Text-Only)
|
| 61 |
+
|
| 62 |
+
The following Python code shows how to use the fine-tuned model for its core text-generation task programmatically.
|
| 63 |
|
| 64 |
```python
|
| 65 |
import torch
|