Unverified Commit 8e05ad32 authored by Matteo Raso's avatar Matteo Raso Committed by GitHub
Browse files

Fixed KeyError for Mistral (#26682)

* Fixed KeyError for Mistral

* Removed try block

* Removed whitespace
parent 762af3e3
......@@ -89,7 +89,7 @@ def write_model(model_path, input_base_path, model_size, tokenizer_path=None, sa
num_shards = NUM_SHARDS[model_size]
# For some reason this is a string in the params.json
sliding_window = int(params["ragged_attention"])
sliding_window = int(params["sliding_window"])
n_layers = params["n_layers"]
n_heads = params["n_heads"]
n_heads_per_shard = n_heads // num_shards
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment