mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-10-01 01:06:01 -04:00
tidy up prints in stablecoder and starcoder
This commit is contained in:
parent
88683abe50
commit
604183380d
@ -624,8 +624,6 @@ bool GPTNEOXModel::load_model(std::string fname) {
|
||||
|
||||
#if defined(GGML_USE_CLBLAST) || defined(GGML_USE_CUBLAS)
|
||||
|
||||
printf("inside ggml clblast check\n");
|
||||
|
||||
|
||||
if(config.n_gpu_layers > 0){
|
||||
size_t vram_total = 0;
|
||||
@ -653,7 +651,7 @@ bool GPTNEOXModel::load_model(std::string fname) {
|
||||
#endif
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s: [GPU] total VRAM used: %zu MB\n", __func__, vram_total / 1024 / 1024);
|
||||
spdlog::info("{}: [GPU] total VRAM used: {} MB\n", __func__, vram_total / 1024 / 1024);
|
||||
}
|
||||
|
||||
#endif // defined(GGML_USE_CLBLAST) || defined(GGML_USE_CUBLAS)
|
||||
|
@ -686,8 +686,6 @@ bool StarcoderModel::load_model(std::string fname) {
|
||||
|
||||
#if defined(GGML_USE_CLBLAST) || defined(GGML_USE_CUBLAS)
|
||||
|
||||
printf("inside ggml clblast check\n");
|
||||
|
||||
if(config.n_gpu_layers > 0){
|
||||
size_t vram_total = 0;
|
||||
int gpu_layers = std::min(config.n_gpu_layers, model->hparams.n_layer);
|
||||
@ -714,7 +712,7 @@ bool StarcoderModel::load_model(std::string fname) {
|
||||
#endif
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s: [GPU] total VRAM used: %zu MB\n", __func__, vram_total / 1024 / 1024);
|
||||
spdlog::info("{}: [GPU] total VRAM used: {} MB\n", __func__, vram_total / 1024 / 1024);
|
||||
}
|
||||
|
||||
#endif // defined(GGML_USE_CLBLAST) || defined(GGML_USE_CUBLAS)
|
||||
|
Loading…
Reference in New Issue
Block a user