MojoLlama
Archived Mojo/MAX quantizer and serving research repository (read-only history)
Brought by drakestapleton
MojoLlama / test_hf_urls.py
| 1 | """Test HF URL patterns.""" |
| 2 | import urllib.request, json, sys |
| 3 | |
| 4 | URLS = [ |
| 5 | # Try different URL patterns for MMLU |
| 6 | "https://huggingface.co/datasets/lukaemon/mmlu/resolve/main/data/abstract_algebra_test.json", |
| 7 | "https://huggingface.co/datasets/lukaemon/mmlu/raw/main/data/abstract_algebra_test.json", |
| 8 | "https://huggingface.co/datasets/lukaemon/mmlu/resolve/main/abstract_algebra_test.json", |
| 9 | "https://huggingface.co/datasets/lukaemon/mmlu/raw/main/abstract_algebra_test.json", |
| 10 | "https://huggingface.co/datasets/lukaemon/mmlu/resolve/main/data/test/abstract_algebra_test.json", |
| 11 | "https://huggingface.co/api/datasets/lukaemon/mmlu", |
| 12 | ] |
| 13 | |
| 14 | for url in URLS: |
| 15 | try: |
| 16 | req = urllib.request.Request(url, method="HEAD") |
| 17 | resp = urllib.request.urlopen(req, timeout=10) |
| 18 | print(f"✅ {url[:80]:80s} {resp.status}") |
| 19 | except Exception as e: |
| 20 | print(f"❌ {url[:80]:80s} {e}") |