mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-13 12:10:18 +00:00
convert : determine n_ctx correctly
This commit is contained in:
parent
8614aa736d
commit
65923a8ede
@ -261,15 +261,15 @@ class Params:
|
|||||||
n_experts_used = None
|
n_experts_used = None
|
||||||
|
|
||||||
# hack to determine LLaMA v1 vs v2 vs CodeLlama
|
# hack to determine LLaMA v1 vs v2 vs CodeLlama
|
||||||
if config.get("rope_theta") == 1000000:
|
if config.get("moe"):
|
||||||
|
# Mixtral
|
||||||
|
n_ctx = 32768
|
||||||
|
elif config.get("rope_theta") == 1000000:
|
||||||
# CodeLlama
|
# CodeLlama
|
||||||
n_ctx = 16384
|
n_ctx = 16384
|
||||||
elif config["norm_eps"] == 1e-05:
|
elif config["norm_eps"] == 1e-05:
|
||||||
# LLaMA v2
|
# LLaMA v2
|
||||||
n_ctx = 4096
|
n_ctx = 4096
|
||||||
elif config["moe"]:
|
|
||||||
# Mixtral
|
|
||||||
n_ctx = 32768
|
|
||||||
else:
|
else:
|
||||||
# LLaMA v1
|
# LLaMA v1
|
||||||
n_ctx = 2048
|
n_ctx = 2048
|
||||||
|
Loading…
Reference in New Issue
Block a user