Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor f8_t and bf8_t as custom types, enable use of custom types #1167

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

geyyer
Copy link
Contributor

@geyyer geyyer commented Feb 14, 2024

  • Refactor f8_t and bf8_t
  • Update conversion methods
  • Update load method
  • Add dynamic buffer custom types support
  • Update threadwise conversion

Right now custom types are supported as source types, their support as destination types is coming soon...

int static err = 0;

template <>
struct vector_type<f8_t, 1>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we template the vector_type instead of reimplementing it for each new data type?

@zjing14
Copy link
Contributor

zjing14 commented Feb 14, 2024

Could you do a performance check to make sure the new custom data type has no impact on the performance of fp8_gemm?

@geyyer
Copy link
Contributor Author

geyyer commented Feb 22, 2024

@zjing14 There is no perf drop on example_gemm_xdl_fp8, nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants