Buckets:
| #!/usr/bin/env python3 | |
| """Portable entrypoint for the three head64 decode models.""" | |
| import argparse | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parent | |
| MODELS = { | |
| 'gqa': ('gqa', 512), | |
| 'roll16': ('roll16', 512), | |
| 'roll16_w128': ('relative_mma', 128), | |
| 'roll16_w128_parent': ('parent', 512), | |
| } | |
| def main(): | |
| parser = argparse.ArgumentParser(description=__doc__, epilog='Remaining options go to inference/kda_rolling16_local128/benchmark.py. --output is required. Use --batch N, --batches N..., or --validate.') | |
| parser.add_argument('--variant', choices=MODELS, required=True) | |
| args, remaining = parser.parse_known_args() | |
| if '--candidate' in remaining: | |
| parser.error('choose --variant instead of --candidate') | |
| candidate, split = MODELS[args.variant] | |
| command = [sys.executable, str(ROOT / 'inference/kda_rolling16_local128/benchmark.py'), '--candidate', candidate] | |
| if not any(x == '--split' or x.startswith('--split=') for x in remaining): | |
| command += ['--split', str(split)] | |
| return subprocess.call(command + remaining, cwd=ROOT) | |
| if __name__ == '__main__': | |
| sys.exit(main()) | |
Xet Storage Details
- Size:
- 1.18 kB
- Xet hash:
- 751f260d9bcf20a0e0ce390eec2973bd99ffcf1a11d76e73f5095afdac5da040
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.