mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Improve some log messages
This commit is contained in:
parent
8a6d9abb41
commit
8ee3cea7cb
@ -100,9 +100,9 @@ def load_model(model_name, loader=None):
|
|||||||
elif loader in ['llama.cpp', 'llamacpp_HF', 'ctransformers']:
|
elif loader in ['llama.cpp', 'llamacpp_HF', 'ctransformers']:
|
||||||
shared.settings['truncation_length'] = shared.args.n_ctx
|
shared.settings['truncation_length'] = shared.args.n_ctx
|
||||||
|
|
||||||
logger.info(f"LOADER: {loader}")
|
logger.info(f"LOADER: \"{loader}\"")
|
||||||
logger.info(f"TRUNCATION LENGTH: {shared.settings['truncation_length']}")
|
logger.info(f"TRUNCATION LENGTH: {shared.settings['truncation_length']}")
|
||||||
logger.info(f"INSTRUCTION TEMPLATE: {metadata['instruction_template']}")
|
logger.info(f"INSTRUCTION TEMPLATE: \"{metadata['instruction_template']}\"")
|
||||||
logger.info(f"Loaded the model in {(time.time()-t0):.2f} seconds.")
|
logger.info(f"Loaded the model in {(time.time()-t0):.2f} seconds.")
|
||||||
return model, tokenizer
|
return model, tokenizer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user