Skip to content

Commit

Permalink
Update clip.cpp by deleting optional logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejaakshaykumar authored Sep 23, 2024
1 parent e08b907 commit 9bea433
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/llava/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1283,16 +1283,6 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
LOG_TEE("Error: Invalid hyperparameter values\n");
return false;
}
// Optionally log loaded hyperparameters for debugging
LOG_TEE("Loaded hyperparameters:\n");
LOG_TEE("Hidden size: %d\n", hparams.hidden_size);
LOG_TEE("Number of heads: %d\n", hparams.n_head);
LOG_TEE("Number of intermediate units: %d\n", hparams.n_intermediate);
LOG_TEE("Number of layers: %d\n", hparams.n_layer);
LOG_TEE("Image size: %d\n", hparams.image_size);
LOG_TEE("Patch size: %d\n", hparams.patch_size);
LOG_TEE("Projection dimension: %d\n", hparams.projection_dim);
LOG_TEE("Layer norm epsilon: %f\n", hparams.eps);
} catch (const std::exception& e) {
LOG_TEE("Error while loading hyperparameters: %s\n", e.what());
     }
Expand Down

0 comments on commit 9bea433

Please sign in to comment.