Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Use triton-windows on Windows for torch compile and triton backend

Open
#870 47 comments 0 reactions 0 assignees View on GitHub

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
Tech stack
python, pytorch

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

enhancement
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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/auto-round

All issues in intel/auto-round

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.