acecalisto3 commited on
Commit
f363f0a
1 Parent(s): 18caca1

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +11 -5
handler.py CHANGED
@@ -9,10 +9,16 @@ logger = logging.getLogger(__name__)
9
 
10
  # Load configuration settings from a separate file (config.json)
11
  # Example configuration file:
12
- # {
13
- # "model_name": "acecalisto3/InstructiPhi",
14
- # "max_length": 50,
15
- # "logging_level": "INFO"
 
 
 
 
 
 
16
  # }
17
  try:
18
  with open('config.json') as f:
@@ -21,7 +27,7 @@ except FileNotFoundError:
21
  logger.error("Configuration file 'config.json' not found. Using default settings.")
22
  config = {
23
  "model_name": "acecalisto3/InstructiPhi", # Default model name
24
- "max_length": 50, # Default max length
25
  "logging_level": "INFO" # Default logging level
26
  }
27
 
 
9
 
10
  # Load configuration settings from a separate file (config.json)
11
  # Example configuration file:
12
+ #{
13
+ # "architectures": [
14
+ # "AceCalisto3"
15
+ # ],
16
+ # "attention_probs_dropout_prob": 0.1,
17
+ # "bos_token_id": 0,
18
+ # "eos_token_id": 2,
19
+ # "hidden_act": "gelu",
20
+ # "hidden_dropout_prob": 0.1,
21
+ # "hidden_size": 1024,
22
  # }
23
  try:
24
  with open('config.json') as f:
 
27
  logger.error("Configuration file 'config.json' not found. Using default settings.")
28
  config = {
29
  "model_name": "acecalisto3/InstructiPhi", # Default model name
30
+ "max_length": 16788, # Default max length
31
  "logging_level": "INFO" # Default logging level
32
  }
33