Upload folder using huggingface_hub
Browse files- README.md +2 -2
- config.json +1 -1
README.md
CHANGED
|
@@ -25,7 +25,7 @@ from PIL import Image
|
|
| 25 |
from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig
|
| 26 |
|
| 27 |
# Define model path
|
| 28 |
-
model_id = "
|
| 29 |
|
| 30 |
# Load model and processor
|
| 31 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
|
@@ -114,7 +114,7 @@ from transformers import (
|
|
| 114 |
)
|
| 115 |
|
| 116 |
source_model_id = "microsoft/Phi-4-multimodal-instruct"
|
| 117 |
-
save_folder = "/tmp/
|
| 118 |
Path(save_folder).mkdir(exist_ok=True)
|
| 119 |
AutoTokenizer.from_pretrained(source_model_id).save_pretrained(save_folder)
|
| 120 |
|
|
|
|
| 25 |
from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig
|
| 26 |
|
| 27 |
# Define model path
|
| 28 |
+
model_id = "tiny-random/phi-4-multimodal"
|
| 29 |
|
| 30 |
# Load model and processor
|
| 31 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
|
|
|
| 114 |
)
|
| 115 |
|
| 116 |
source_model_id = "microsoft/Phi-4-multimodal-instruct"
|
| 117 |
+
save_folder = "/tmp/tiny-random/phi-4-multimodal"
|
| 118 |
Path(save_folder).mkdir(exist_ok=True)
|
| 119 |
AutoTokenizer.from_pretrained(source_model_id).save_pretrained(save_folder)
|
| 120 |
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "./tmp/
|
| 3 |
"architectures": [
|
| 4 |
"Phi4MMForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "./tmp/tiny-random/phi-4-multimodal",
|
| 3 |
"architectures": [
|
| 4 |
"Phi4MMForCausalLM"
|
| 5 |
],
|