qgallouedec HF Staff commited on
Commit
a47f222
·
verified ·
1 Parent(s): 1dd7e9c

Register AutoModel + SeqCls in auto_map

Browse files
Files changed (3) hide show
  1. config.json +1 -0
  2. model.safetensors +1 -1
  3. modeling_remote.py +5 -1
config.json CHANGED
@@ -6,6 +6,7 @@
6
  "attention_dropout": 0.0,
7
  "auto_map": {
8
  "AutoConfig": "configuration_remote.RemoteConfig",
 
9
  "AutoModelForCausalLM": "modeling_remote.RemoteForCausalLM",
10
  "AutoModelForSequenceClassification": "modeling_remote.RemoteForSequenceClassification"
11
  },
 
6
  "attention_dropout": 0.0,
7
  "auto_map": {
8
  "AutoConfig": "configuration_remote.RemoteConfig",
9
+ "AutoModel": "modeling_remote.RemoteModel",
10
  "AutoModelForCausalLM": "modeling_remote.RemoteForCausalLM",
11
  "AutoModelForSequenceClassification": "modeling_remote.RemoteForSequenceClassification"
12
  },
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:19397c0a73149b2ab5e34cd5abe6b01cb9bb0e907ef2d8ba628c9bee64b81302
3
  size 4110296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97e5886b2455eebf7c25022d727cab6473729aa8a11c68fcd88437ffa500489e
3
  size 4110296
modeling_remote.py CHANGED
@@ -12,11 +12,15 @@
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
14
 
15
- from transformers import LlamaForCausalLM, LlamaForSequenceClassification
16
 
17
  from .configuration_remote import RemoteConfig
18
 
19
 
 
 
 
 
20
  class RemoteForCausalLM(LlamaForCausalLM):
21
  config_class = RemoteConfig
22
 
 
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
14
 
15
+ from transformers import LlamaForCausalLM, LlamaForSequenceClassification, LlamaModel
16
 
17
  from .configuration_remote import RemoteConfig
18
 
19
 
20
+ class RemoteModel(LlamaModel):
21
+ config_class = RemoteConfig
22
+
23
+
24
  class RemoteForCausalLM(LlamaForCausalLM):
25
  config_class = RemoteConfig
26