Skip to content

Commit

Permalink
llama: remove unused code (commented out)
Browse files Browse the repository at this point in the history
This commit remove unused code that was commented out in the source
file during rebasing.
  • Loading branch information
danbev committed Nov 11, 2024
1 parent c39064a commit 3a5508b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9338,9 +9338,6 @@ static bool llm_load_tensors(
return ml.create_tensor(ctx, tn, ne, flags);
};

//ggml_context * ctx_vision = ctx_map.at(model.buft_input.buft); // TODO: make dedicated buft for vision
//auto ctx_for_layer = [&](int i) { return ctx_map.at(model.buft_layer[i].buft); };

model.clip.layers.resize(n_layer);

switch (vparams.arch) {
Expand All @@ -9361,7 +9358,6 @@ static bool llm_load_tensors(
model.clip.post_norm_b = create_tensor(tn(VISION_TENSOR_POST_NORM, "bias" ), {n_embd}, llama_model_loader::TENSOR_NOT_REQUIRED);

for (int i = 0; i < n_layer; ++i) {
//ggml_context * ctx_layer = ctx_for_layer(i);
auto & layer = model.clip.layers[i];

layer.k_w = create_tensor(tn(VISION_TENSOR_ENC_ATTN_K, "weight", i), {n_embd, n_embd}, 0);
Expand Down

0 comments on commit 3a5508b

Please sign in to comment.