Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/llama-hparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ uint32_t llama_hparams::n_embd_s() const {
}

bool llama_hparams::is_recurrent(uint32_t il) const {
return recurrent_layer_arr[il];
if (il < n_layer) {
return recurrent_layer_arr[il];
}

GGML_ABORT("\n%s: il (%u) out of bounds (n_layer: %d)\n", __func__, il, (int)n_layer);
}

uint32_t llama_hparams::n_pos_per_embd() const {
Expand Down
Loading