Skip to content

Conversation

@vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Oct 29, 2025

Summary:

As titled, adds support for bias and a unit test

Test Plan:

pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants

Reviewers:

Subscribers:

Tasks:

Tags:

vkuzo added 8 commits October 29, 2025 04:05
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@vkuzo
Copy link
Contributor Author

vkuzo commented Oct 29, 2025

vkuzo added a commit that referenced this pull request Oct 29, 2025
Summary:

As titled, adds support for bias and a unit test

Test Plan:

```
pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 07b623e
ghstack-comment-id: 3463298384
Pull-Request: #3259
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 29, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3259

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2025
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Oct 29, 2025
Summary:

As titled, adds support for bias and a unit test

Test Plan:

```
pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: a5a2461
ghstack-comment-id: 3463298384
Pull-Request: #3259
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Oct 29, 2025
Summary:

As titled, adds support for bias and a unit test

Test Plan:

```
pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 50f7a26
ghstack-comment-id: 3463298384
Pull-Request: #3259
@vkuzo vkuzo added the topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) label Oct 30, 2025
vkuzo added 3 commits October 30, 2025 04:17
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Oct 30, 2025
Summary:

As titled, adds support for bias and a unit test

Test Plan:

```
pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: e9bf640
ghstack-comment-id: 3463298384
Pull-Request: #3259
vkuzo added 2 commits October 30, 2025 04:18
[ghstack-poisoned]
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Oct 30, 2025
Summary:

As titled, adds support for bias and a unit test

Test Plan:

```
pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: e9bf640
ghstack-comment-id: 3463298384
Pull-Request: #3259
vkuzo added 2 commits October 30, 2025 04:41
[ghstack-poisoned]
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Oct 30, 2025
Summary:

As titled, adds support for bias and a unit test

Test Plan:

```
pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -k fp8_linear_variants
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: d603372
ghstack-comment-id: 3463298384
Pull-Request: #3259
vkuzo added 2 commits October 30, 2025 12:50
[ghstack-poisoned]
[ghstack-poisoned]

class ToyLinearModel(torch.nn.Module):
def __init__(self, in_features, out_features):
def __init__(self, in_features, out_features, bias):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: feels like bias is a bit confusing (since it can be a flag v.s. Tensor), even though it's used official in nn.Linear, maybe use has_bias as the other tests are doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, let me do that in a future PR

vkuzo added 4 commits October 31, 2025 06:26
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@vkuzo vkuzo changed the base branch from gh/vkuzo/158/head to main October 31, 2025 19:43
@vkuzo vkuzo merged commit f856d36 into main Oct 31, 2025
31 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants