okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
98d1c8d4f
main
1#!/usr/bin/env python3 2"""Prepare the pinned Q2_0 draft pack with upstream hash verification.""" 3import argparse 4from pathlib import Path 5import subprocess 6import sys 7 8ap = argparse .ArgumentParser () 9ap .add_argument ('--source' ,type = Path ,required = True ) 10ap .add_argument ('--assets' ,type = Path ,required = True ) 11a = ap .parse_args () 12sys .path .insert (0 ,str (a .source / 'tools' )) 13import mtp_fetch as m 14assert m .REVISION == 'de4b8e4d43b917e7706784d8bb445c9af86a3540' 15m .resolve_repo = lambda :None # No fallback to a floating revision. 16m .fetch (str (a .assets / 'mtp-source' ),None ) 17assert not m .verify (str (a .assets / 'mtp-source' )) 18subprocess .run ([sys .executable ,str (a .source / 'tools/mtp_pack.py' ),'--src' ,str (a .assets / 'mtp-source' ), 19'--experts' ,'q2_0' ,'--out' ,str (a .assets / 'mtp-q2_0.gguf' )],check = True ) 20subprocess .run ([sys .executable ,str (a .source / 'tools/mtp_rt.py' ),'--gguf' ,str (a .assets / 'mtp-q2_0.gguf' ), 21'--out' ,str (a .assets / 'mtp-rt' )],check = True )