Update README.md
Browse files
README.md
CHANGED
@@ -32,6 +32,26 @@ Including the source language during inference helps reduce hallucinations and i
|
|
32 |
- **Training Loss:**
|
33 |
- Decreased from 1.423 to 0.176
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
## Model description
|
36 |
|
37 |
More information needed
|
|
|
32 |
- **Training Loss:**
|
33 |
- Decreased from 1.423 to 0.176
|
34 |
|
35 |
+
Below is a revised version with a short explanation added:
|
36 |
+
|
37 |
+
---
|
38 |
+
|
39 |
+
## Inference
|
40 |
+
|
41 |
+
Load `generation_config` and `processor` from the base model as a quick fix to use the default generation settings.
|
42 |
+
|
43 |
+
*Note: The new models currently lack high-quality fine-tuning scripts. When saving a fine-tuned model using `model.save_pretrained()`, the processor configuration—including essential audio parameters—is not automatically saved. This omission can lead to errors during inference due to the model’s complex architecture. Loading these components from the base model ensures that all critical settings are properly included.*
|
44 |
+
|
45 |
+
```python
|
46 |
+
generation_config = GenerationConfig.from_pretrained(
|
47 |
+
'microsoft/Phi-4-multimodal-instruct', 'generation_config.json'
|
48 |
+
)
|
49 |
+
processor = AutoProcessor.from_pretrained(
|
50 |
+
'microsoft/Phi-4-multimodal-instruct', trust_remote_code=True
|
51 |
+
)
|
52 |
+
```
|
53 |
+
|
54 |
+
|
55 |
## Model description
|
56 |
|
57 |
More information needed
|