Use triton-windows on Windows for torch compile and triton backend
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- machine-learning
Research direction
Start with the provided script at the AutoRound(...) call and inspect the constructor signature associated with the missing tokenizer error. Re-run the Windows reproducer after identifying the required invocation; the issue is done when the example no longer fails at initialization and reaches quantization.
Written by the indexing model from the issue text.
Description
from auto_round import AutoRound
from pathlib import Path
model_dir = Path(r"c:\Users\XXX\Documents\python\autoround\facebook") # <-- hier deinen Pfad eintragen
# --- Überprüfen, ob der Pfad existiert und ein Verzeichnis ist ---
if not model_dir.exists():
print(f"❌ Der Pfad '{model_dir}' existiert nicht.")
elif not model_dir.is_dir():
print(f"⚠️ Der Pfad '{model_dir}' ist keine Verzeichnisstruktur.")
else:
print(f"📁 Inhalte des Verzeichnisses: {model_dir}\n")
# --- Alle Dateien im Verzeichnis auflisten ---
files = [f for f in model_dir.iterdir() if f.is_file()]
if not files:
print("ℹ️ Keine Dateien im Verzeichnis gefunden.")
else:
for file in files:
print(f" - {file.name}")
# Available schemes: "W2A16", "W3A16", "W4A16", "W8A16", "NVFP4", "MXFP4" (no real kernels), "GGUF:Q4_K_M", etc.
ar = AutoRound(model_dir, scheme="W4A16", iters=50, lr=5e-3)
# Highest accuracy (4–5× slower).
# `low_gpu_mem_usage=True` saves ~20GB VRAM but runs ~30% slower.
# ar = AutoRound(model_name_or_path, nsamples=512, iters=1000, low_gpu_mem_usage=True)
# Faster quantization (2–3× speedup) with slight accuracy drop at W4G128.
# ar = AutoRound(model_name_or_path, nsamples=128, iters=50, lr=5e-3)
# Supported formats: "auto_round" (default), "auto_gptq", "auto_awq", "llm_compressor", "gguf:q4_k_m", etc.
ar.quantize_and_save(output_dir=r"c:\Users\XXX\Documents\python\autoround\tmp_autoround", format="q4_k_m")
thats shows the shell:
2025-10-08 16:52:23,670 INFO utils.py L164: NumExpr defaulting to 16 threads.
📁 Inhalte des Verzeichnisses: c:\Users\XXX\Documents\python\autoround\facebook
- config.json
- flax_model.msgpack
- generation_config.json
- gitattributes
- LICENSE.md
- merges.txt
- pytorch_model.bin
- README.md
- special_tokens_map.json
- tf_model.h5
- tokenizer_config.json
- vocab.json
Traceback (most recent call last):
File "C:\Users\XXX\Documents\python\autoround\auto01.py", line 24, in
ar = AutoRound(model_dir, scheme="W4A16", iters=50, lr=5e-3)
TypeError: AutoRound.init() missing 1 required positional argument: 'tokenizer'
what do i miss ?
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 193
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 55
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intel/auto-round
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
intel/auto-round#2525 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 44/100
intel/auto-round#2532 ·
Maintainers usually reply within 1 day
-
[Bug]: FP8 static KV cache accuracy issuePossibly taken @xin3he claimed this 6 days ago. Openbug
intel/auto-round#2518 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
[Feature]: split special_model_handler to a folderPossibly taken @Cross2pro claimed this 3 days ago. Openenhancement
Difficulty 3/5 Half a day Newbie friendliness 42/100
intel/auto-round#2514 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 20/100
intel/auto-round#2507 ·
Maintainers usually reply within 1 day
All issues in intel/auto-round
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
521xueweihan/HelloGitHub#4115 ·
-
get_lldp_neighbors_detail: query asks for 'max-address' (typo for 'mac-address'), so remote_chassis_id is always emptyPossibly taken @Jah-yee claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
lesson-submission pending-review
Difficulty 1/5 Under an hour Newbie friendliness 74/100
Ikalus1988/MisakaNet#3899 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
aws-samples/sample-per-model-bedrock#549 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100