Skip to content

Commit

Permalink
Add a LOADER debug message while loading models
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Nov 30, 2023
1 parent 1c90e02 commit 77d6ccf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def load_model(model_name, loader=None):
elif loader in ['llama.cpp', 'llamacpp_HF', 'ctransformers']:
shared.settings['truncation_length'] = shared.args.n_ctx

logger.info(f"LOADER: {loader}")
logger.info(f"TRUNCATION LENGTH: {shared.settings['truncation_length']}")
logger.info(f"INSTRUCTION TEMPLATE: {shared.settings['instruction_template']}")
logger.info(f"Loaded the model in {(time.time()-t0):.2f} seconds.")
Expand Down

0 comments on commit 77d6ccf

Please sign in to comment.