SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.17789 · 2026

DuQuant++: Fine-grained Rotation Enhances Microscaling FP4 Quantization

Ying Wei, Qingfu Zhang, Yichen Wu, Haokun Lin, Haobo Xu, Zhenan Sun, Casia, Nju, Cityu, Zhichao Lu, Xinle Jia, Bingchen Yao, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

14 of 30 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 11 failures of our instrument; 16 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.17789.json · badge: /api/ran/2604.17789.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Hsu1023/DuQuant-v2 community
Papers with Code archive
13 ran · 16 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
DuLlamaRMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("22dc933e4384b25f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, DuLlamaRMSNorm: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a mock original norm module with a weight attribute
class MockRMSNorm(nn.Module):
    def __init__(self):
        super().__init__()
        # Weight should match the hidden dimension
        self.weight = nn.Parameter(torch.ones(4))

ori_norm = MockRMSNorm()

ARGS = {
    'ori_norm': ori_norm,
    'eps': 1e-06
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DuLlamaRMSNorm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DuLlamaRMSNorm output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
TruncateFunction Ran
ran on a synthesized input · constructed an object; no result was computed
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("b21c5b036d520461")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, TruncateFunction: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for TruncateFunction.forward
# Parameters: ctx (implicit in autograd.Function), input, threshold

input_tensor = torch.randn(2, 4)
threshold_value = 0.5

ARGS = {
    'input': input_tensor,
    'threshold': threshold_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TruncateFunction — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TruncateFunction output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
UniformAffineQuantizer Ran
ran on a synthesized input · constructed an object; no result was computed
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("f17b50bd007e4e7d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, UniformAffineQuantizer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import math

torch.manual_seed(0)

ARGS = {
    'n_bits': 8,
    'symmetric': False,
    'per_channel_axes': [],
    'metric': 'minmax',
    'dynamic': False,
    'dynamic_method': 'per_cluster',
    'group_size': None,
    'shape': None,
    'lwc': False,
    'swc': None,
    'lac': None,
    'act_group_size': None,
    'quant_method': None,
    'block_size': 128,
    'rotate': True,
    'max_rotation_step': 1024,
    'permutation_times': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type UniformAffineQuantizer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UniformAffineQuantizer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cast_to_eBm0_improved Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("747c84caa92a3ba4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small positive tensor for x
# The function expects positive inputs and performs log operations
x = torch.tensor([0.1, 0.5, 1.0, 2.0], dtype=torch.float32)

# ebits: number of exponent bits (must be even)
ebits = 4

# emax: maximum exponent value for element data format
emax = 15

ARGS = {
    "x": x,
    "ebits": ebits,
    "emax": emax,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cast_to_fp4 Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("afcafddea4afcd55")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function cast_to_fp4 takes a single tensor argument 'x'
# and applies quantization logic to it using torch operations.
# We need to provide a tensor with various values to test the quantization ranges.

x = torch.tensor([
    [0.1, 0.5, 1.0, 2.0],
    [3.0, 4.0, 5.5, -1.5]
], dtype=torch.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dequantize_fp4 Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("deec9d75f4b616b2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for dequantize_fp4
# q: quantized values tensor
q = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                   [5.0, 6.0, 7.0, 8.0]], dtype=torch.float32)

# scales: scaling factors tensor
scales = torch.tensor([[0.5, 0.5, 0.5, 0.5],
                       [0.25, 0.25, 0.25, 0.25]], dtype=torch.float32)

# zeros: zero point tensor
zeros = torch.tensor([[0.0, 0.0, 0.0, 0.0],
                      [0.0, 0.0, 0.0, 0.0]], dtype=torch.float32)

ARGS = {
    "q": q,
    "scales": scales,
    "zeros": zeros,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
duquant_state_dict Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("c44bc2a3237345b4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned OrderedDict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from collections import OrderedDict

torch.manual_seed(0)

class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Parameters that match the filter conditions
        self.smooth_param = nn.Parameter(torch.randn(4, 3))
        self.bound_factor_param = nn.Parameter(torch.randn(2, 5))
        self.trans_param = nn.Parameter(torch.randn(3, 4))
        self.post_param = nn.Parameter(torch.randn(2, 2))
        
        # Other parameters that should be filtered out
        self.weight = nn.Parameter(torch.randn(4, 4))
        self.bias = nn.Parameter(torch.randn(4))
        
        # Buffers that match the filter conditions
        self.register_buffer('init_duquant_params', torch.randn(3, 3))
        self.register_buffer('R', torch.randn(2, 4))
        self.register_buffer('permutation_list', torch.tensor([0, 1, 2, 3]))
        
        # Other buffers that should be filtered out
        self.register_buffer('running_mean', torch.randn(4))
        self.register_buffer('running_var', torch.randn(4))

model = DummyModel()

ARGS = {
    'model': model,
    'destination': None,
    'prefix': '',
    'keep_vars': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_post_parameters Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("c31487ba3c802876")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list_iterator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.post_scale = nn.Parameter(torch.randn(3))
        self.layer2 = nn.Linear(3, 2)
        self.bound_factor = nn.Parameter(torch.randn(2))
        self.other_param = nn.Parameter(torch.randn(5))
    
    def forward(self, x):
        x = self.layer1(x)
        x = x * self.post_scale
        x = self.layer2(x)
        x = x * self.bound_factor
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list_iterator — a list_iterator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a list_iterator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
let_parameters Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("7dd7f74b3600a4f5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list_iterator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.post_scale = nn.Parameter(torch.randn(3))
        self.layer2 = nn.Linear(3, 2)
        self.post_scale_2 = nn.Parameter(torch.randn(2))
        self.other_param = nn.Parameter(torch.randn(2))
    
    def forward(self, x):
        return x

model = SimpleModel()

ARGS = {
    'model': model,
    'use_shift': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list_iterator — a list_iterator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a list_iterator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lwc_parameters Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("dc52888f6a74bba1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list_iterator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.bound_factor = nn.Parameter(torch.randn(2))
        self.linear2 = nn.Linear(3, 2)
        self.bound_factor_2 = nn.Parameter(torch.randn(5))
        self.other_param = nn.Parameter(torch.randn(3))
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list_iterator — a list_iterator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a list_iterator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quantize_dequantize_fp4 Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("6f32d6d7941324be")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function parameters
x = torch.randn(2, 4)  # Input tensor
scales = torch.ones(2, 4) * 0.5  # Scale factors
zeros = torch.zeros(2, 4)  # Zero points
q_min = 0  # Quantization minimum
q_max = 6  # Quantization maximum

ARGS = {
    "x": x,
    "scales": scales,
    "zeros": zeros,
    "q_min": q_min,
    "q_max": q_max,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quantize_fp4 Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("5ce0befa6e109811")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small test tensors
x = torch.randn(2, 4)  # batch size 2, dim 4
scales = torch.ones(2, 4) * 0.5  # scaling factors
zeros = torch.zeros(2, 4)  # zero points

q_min = 0
q_max = 15

ARGS = {
    "x": x,
    "scales": scales,
    "zeros": zeros,
    "q_min": q_min,
    "q_max": q_max,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
smooth_parameters Ran
ran; our contract draft was wrong, not the code
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("607bee1a0f21cd6d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list_iterator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.smooth_layer = nn.Linear(4, 3)
        self.regular_layer = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.smooth_layer(x)
        x = self.regular_layer(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model,
    'use_shift': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list_iterator — a list_iterator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a list_iterator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
truncate_number Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from saic-fi/mobilequant
pointer only; the stored copy get_code serves, from saic-fi/mobilequant, is pointer only (licence: NOASSERTION) · get_code("94587954e392b665")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

QuantLinear Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("20e6a8d6947c04ab")
How it ran

no invocation recorded.

QuantLlamaAttention Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("77859dd6c404b9c2")
How it ran

no invocation recorded.

QuantLlamaDecoderLayer Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("cbcd07e2ca5a3ba7")
How it ran

no invocation recorded.

QuantLlamaMLP Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("bf4e088584597d5c")
How it ran

no invocation recorded.

clear_temp_variable Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("e0d9150534aba495")
How it ran

no invocation recorded.

duquant Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("41112d78927836b9")
How it ran

no invocation recorded.

post_quant_inplace Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("daa33f9a814e8fd2")
How it ran

no invocation recorded.

post_rotate_quant_temporary Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("cd822d05aa1f374d")
How it ran

no invocation recorded.

quant_inplace Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("f3a915217e460b33")
How it ran

no invocation recorded.

register_scales_and_zeros Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("8e21c7c7a2bc9bcd")
How it ran

no invocation recorded.

set_init_duquant_params_state Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("6fc5c56d4380275e")
How it ran

no invocation recorded.

set_quant_state Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("734fba19235f83c0")
How it ran

no invocation recorded.

set_registered_x_none Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("3060585a5fbe76af")
How it ran

no invocation recorded.

set_requires_grad Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("6f1be3b48ab8af2f")
How it ran

no invocation recorded.

smooth_and_let_inplace Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("da4ceec866898e3a")
How it ran

no invocation recorded.

smooth_and_quant_temporary Not yet run
unverified (harvested, no recorded run)
Hsu1023/DuQuant-v2/quantize/duquant.py
code served (permissive licence) · get_code("eb88d162cd0854f5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 30 samples lifted from this paper's linked repositories, 30 carry a function identity and 0 do not. Of the 30 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 29 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
truncate_number
brick of this paper's assembly: helper
8 other papers
8 dated earlier
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
2403.12544 (2024-03)
AffineQuant: Affine Transformation Quantization for Large Language Models
and 5 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The MXFP4 microscaling format, which partitions tensors into blocks of 32 elements sharing an E8M0 scaling factor, has emerged as a promising substrate for efficient LLM inference, backed by native hardware support on NVIDIA Blackwell Tensor Cores. However, activation outliers pose a unique challenge under this format: a single outlier inflates the shared block scale, compressing the effective dynamic range of the remaining elements and causing significant quantization error. Existing rotation-based remedies, including randomized Hadamard and learnable rotations, are data-agnostic and therefore unable to specifically target the channels where outliers concentrate. We propose DuQuant++, which adapts the outlier-aware fine-grained rotation of DuQuant to the MXFP4 format by aligning the rotation block size with the microscaling group size (B=32). Because each MXFP4 group possesses an independent scaling factor, the crossblock variance issue that necessitates dual rotations and a zigzag permutation in the original DuQuant becomes irrelevant, enabling DuQuant++ to replace the entire pipeline with a single outlier-aware rotation, which halves the online rotation cost while simultaneously smoothing the weight distribution. Extensive experiments on the LLaMA-3 family under MXFP4 W4A4 quantization show that DuQuant++ consistently achieves state-of-the-art performance. Our code is available at https://github.com/Hsu1023/DuQuant-v2.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.17789")
get_code_for_paper("2604.17789")
have("2604.17789")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.17789.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.17789.svg)](https://syntology.ai/paper/2604.17789)

Connect an agent — have() is free.