Update configuration_phi3.py
Browse files- configuration_phi3.py +4 -4
configuration_phi3.py
CHANGED
@@ -23,8 +23,8 @@ from transformers.utils import logging
|
|
23 |
logger = logging.get_logger(__name__)
|
24 |
|
25 |
PHI3_PRETRAINED_CONFIG_ARCHIVE_MAP = {
|
26 |
-
"
|
27 |
-
"
|
28 |
}
|
29 |
|
30 |
|
@@ -33,7 +33,7 @@ class Phi3Config(PretrainedConfig):
|
|
33 |
This is the configuration class to store the configuration of a [`Phi3Model`]. It is used to instantiate a Phi-3
|
34 |
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
|
35 |
defaults will yield a similar configuration to that of the
|
36 |
-
[
|
37 |
|
38 |
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
39 |
documentation from [`PretrainedConfig`] for more information.
|
@@ -102,7 +102,7 @@ class Phi3Config(PretrainedConfig):
|
|
102 |
>>> from transformers import Phi3Model, Phi3Config
|
103 |
|
104 |
>>> # Initializing a Phi-3 style configuration
|
105 |
-
>>> configuration = Phi3Config.from_pretrained("
|
106 |
|
107 |
>>> # Initializing a model from the configuration
|
108 |
>>> model = Phi3Model(configuration)
|
|
|
23 |
logger = logging.get_logger(__name__)
|
24 |
|
25 |
PHI3_PRETRAINED_CONFIG_ARCHIVE_MAP = {
|
26 |
+
"swkimx97/Phi-3-mini-4k-instruct": "https://huggingface.co/swkimx97/Phi-3-mini-4k-instruct/resolve/main/config.json",
|
27 |
+
"swkimx97/Phi-3-mini-128k-instruct": "https://huggingface.co/swkimx97/Phi-3-mini-128k-instruct/resolve/main/config.json",
|
28 |
}
|
29 |
|
30 |
|
|
|
33 |
This is the configuration class to store the configuration of a [`Phi3Model`]. It is used to instantiate a Phi-3
|
34 |
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
|
35 |
defaults will yield a similar configuration to that of the
|
36 |
+
[swkimx97/Phi-3-mini-4k-instruct](https://huggingface.co/swkimx97/Phi-3-mini-4k-instruct).
|
37 |
|
38 |
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
39 |
documentation from [`PretrainedConfig`] for more information.
|
|
|
102 |
>>> from transformers import Phi3Model, Phi3Config
|
103 |
|
104 |
>>> # Initializing a Phi-3 style configuration
|
105 |
+
>>> configuration = Phi3Config.from_pretrained("swkimx97/Phi-3-mini-4k-instruct")
|
106 |
|
107 |
>>> # Initializing a model from the configuration
|
108 |
>>> model = Phi3Model(configuration)
|