cognitivess commited on
Commit
6e88f4c
1 Parent(s): 4defe05

Update cognitivess_model/__init__.py

Browse files
Files changed (1) hide show
  1. cognitivess_model/__init__.py +7 -4
cognitivess_model/__init__.py CHANGED
@@ -5,13 +5,16 @@ from .tokenization_cognitivess_fast import CognitivessTokenizerFast
5
 
6
  from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
7
 
8
- # Register the custom config
9
  AutoConfig.register("cognitivess", CognitivessConfig)
 
10
 
11
- # Register the custom model
12
  AutoModelForCausalLM.register(CognitivessConfig, CognitivessForCausalLM)
 
13
 
14
- # Register the custom tokenizer
15
  AutoTokenizer.register(CognitivessConfig,
16
  slow_tokenizer_class=CognitivessTokenizer,
17
- fast_tokenizer_class=CognitivessTokenizerFast)
 
 
5
 
6
  from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
7
 
8
+ print("Registering CognitivessConfig...")
9
  AutoConfig.register("cognitivess", CognitivessConfig)
10
+ print("CognitivessConfig registered successfully.")
11
 
12
+ print("Registering CognitivessForCausalLM...")
13
  AutoModelForCausalLM.register(CognitivessConfig, CognitivessForCausalLM)
14
+ print("CognitivessForCausalLM registered successfully.")
15
 
16
+ print("Registering CognitivessTokenizer and CognitivessTokenizerFast...")
17
  AutoTokenizer.register(CognitivessConfig,
18
  slow_tokenizer_class=CognitivessTokenizer,
19
+ fast_tokenizer_class=CognitivessTokenizerFast)
20
+ print("CognitivessTokenizer and CognitivessTokenizerFast registered successfully.")