Skip to content

Conversation

EpicUsaMan
Copy link

Description of changes:
Sin & Cos activation

Related Issues:

Linked Issues:

  • Issue #

Issues closed by this PR:

  • Closes #

@jiazhihao jiazhihao requested a review from wmdi July 4, 2025 20:13
@jiazhihao jiazhihao added the CUDA Transpiler Issues and features related to the CUDA transpiler of Mirage label Jul 4, 2025
@EpicUsaMan
Copy link
Author

Looks like I forgot something which was not caught by local build

Will fix it and write proper tests

uint32_t q_residual = input % FP_Q;
uint32_t p_residual = input % FP_P;
// Simulate sin by using some transformation of the input
q_residual = (q_residual * 7) % FP_Q; // Simple transformation
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this simulation is too simple and can be easily confused with scalar multiplication, which may cause false positive. Could you change to a better one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CUDA Transpiler Issues and features related to the CUDA transpiler of Mirage

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants