mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Model: Exl3 cache quant settings lenient with whitespace
This commit is contained in:
@@ -233,7 +233,7 @@ class ExllamaV3Container(BaseModelContainer):
|
||||
case "Q8":
|
||||
self.cache_mode = "8,8"
|
||||
|
||||
split_cache_mode = re.search(r"^([2-8]),([2-8])$", self.cache_mode)
|
||||
split_cache_mode = re.search(r"^([2-8])\s*,\s*([2-8])$", self.cache_mode)
|
||||
if split_cache_mode:
|
||||
k_bits = int(split_cache_mode.group(1))
|
||||
v_bits = int(split_cache_mode.group(2))
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import List, Literal, Optional, Union
|
||||
|
||||
|
||||
CACHE_SIZES = Literal["FP16", "Q8", "Q6", "Q4"]
|
||||
CACHE_TYPE = Union[CACHE_SIZES, constr(pattern=r"^[2-8],[2-8]$")]
|
||||
CACHE_TYPE = Union[CACHE_SIZES, constr(pattern=r"^[2-8]\s*,\s*[2-8]$")]
|
||||
|
||||
|
||||
class Metadata(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user