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

Query on using Timeloop and Accelergy #240

Open
Yukiona1996 opened this issue Feb 14, 2024 · 11 comments
Open

Query on using Timeloop and Accelergy #240

Yukiona1996 opened this issue Feb 14, 2024 · 11 comments

Comments

@Yukiona1996
Copy link

Hi,

Just wanted to check in if there's a way for us to load the weight of pre-trained models onto one of the yaml files and use them to perform the necessary analysis on the architecture and mapping?

If yes, could you please redirect me to the relevant documents?

Thanks!

@angshuman-parashar
Copy link
Collaborator

Are you trying to model a dense or sparse (compressed) configuration? If it's dense then the model weights are not relevant because they do not change the behavior of the workload on the hardware -- at least not at the level of fidelity at which Timeloop works. All that Timeloop needs to know are the dimensions.

@Yukiona1996
Copy link
Author

How would it be with respect to a sparse architecture?

@angshuman-parashar
Copy link
Collaborator

@tanner-andrulis Do you know anything about the status of the real-data density model?

@tanner-andrulis
Copy link
Collaborator

That's out of my expertise... pinging Fisher. It's him or Nellie

@Yukiona1996
Copy link
Author

Hi, Do we have any updates on this?

@Yukiona1996
Copy link
Author

@angshuman-parashar Could you please confirm if is there a way for us interface a routing and data compression logic in say a python to timeloop? I was considering having the algorithm output spare data, and feeling that to our timeloop model or mapper.

@angshuman-parashar
Copy link
Collaborator

Real data density model is a WIP feature and is not exposed yet.

I am not sure what you mean by "routing and data compression logic". If this is an different question then I suggest creating a new issue for it.

@Yukiona1996
Copy link
Author

By that I meant, writting an algorithm to sparsify the data in python externally and then just pass the data alone as input to the dense architecture. Would I be allowed to interface this kind of a logic into Timeloop?

@Yukiona1996
Copy link
Author

Hi @angshuman-parashar , do you have any inputs on this?

@angshuman-parashar
Copy link
Collaborator

Dense architectures do not care about data. The model's output only depends on the tensor shapes.

Instead, if you want Timeloop (Sparseloop) to model an architecture that takes advantage of the sparsity to improve performance or energy efficiency, then you will have to extract statistical properties from your sparsified data and represent the distribution using one of the supported density models (e.g., hypergeometric distribution).

@Yukiona1996
Copy link
Author

Thank you, that helps!

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

No branches or pull requests

3 participants