Support Q4 CPU speech and document Hermes default activation
This commit is contained in:
1 parent
ed100ab40a
commit
0e3ad518d3
13 files changed
+248
-25
No files matched your search
@@ -5,11 +5,12 @@ from pathlib import Path
|
||||
REPO='Serveurperso/Qwen3-TTS-GGUF'
|
||||
REVISION='b7ee2e8c7459c3bea99da23e3d178125a7d1713c'
|
||||
FILES=[('qwen-talker-0.6b-base-Q8_0.gguf','d54dbaf10591421fa764ed630d764efa717ae40cd959bd48c66d4eb1af226426'),('qwen-tokenizer-12hz-Q8_0.gguf','1883beeed99348fc35e23dd225e9082f93f6f8c109330a33d935baa8acdbfd94')]
|
||||
Q4_FILE=('qwen-talker-0.6b-base-Q4_K_M.gguf','4b468ec7b1f62b90ef4ca316c0aa57deadfd54b2cf9651703ea753cedaf04226')
|
||||
def digest(path):
|
||||
with path.open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
|
||||
def main():
|
||||
p=argparse.ArgumentParser();p.add_argument('--state',required=True,type=Path);p.add_argument('--cache',required=True,type=Path);a=p.parse_args();ids=[]
|
||||
for name,expected in FILES:
|
||||
p=argparse.ArgumentParser();p.add_argument('--state',required=True,type=Path);p.add_argument('--cache',required=True,type=Path);p.add_argument('--quant',choices=['Q8','Q4'],default='Q8');a=p.parse_args();ids=[]
|
||||
for name,expected in ([Q4_FILE,FILES[1]] if a.quant=='Q4' else FILES):
|
||||
source=a.cache/('models--'+REPO.replace('/','--'))/'snapshots'/REVISION/name
|
||||
if digest(source)!=expected:raise ValueError('Qwen-Datei hat unerwartete SHA256.')
|
||||
ident=hashlib.sha256((REPO+REVISION+name).encode()).hexdigest();target=a.state/'models'/ident;target.mkdir(parents=True,exist_ok=True,mode=0o700)
|
||||
|
||||
Reference in new issue
Block a user