-
Notifications
You must be signed in to change notification settings - Fork 51
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
Trace model in model-explorer #254
Comments
Hi @nigelzzzzzzz, I don't think I can explain it better than the code but effectively a model is equivalent to a program -- just like how compilers in the past converted programs to binary, they some times go through intermediary representations. These intermediary representations are expressed in MLIR. StableHLO is a dialect of MLIR, and so is VHLO. During this process to convert a model, there are sometimes opportunities to optimize the model/program/graph. It would take a long time to explain this all and I do not know every piece myself -- you might want to dig into the code yourself to see how you can make sense of it. |
Marking this issue as stale since it has been open for 7 days with no activity. This issue will be closed if no further activity occurs. |
Hi @pkgoogle , thanks for your reply, i have checked the source code, |
Hi @nigelzzzzzzz, I'm not understanding what do you mean by
for the first screenshot... can you perhaps highlight what you mean or add more context there? |
Hi @pkgoogle ,
i think in |
Hi @nigelzzzzzzz, if I'm understanding you correctly, you're saying that the params values = [[ 1, 1, 1 ... 1]] is malformed, and you were expecting something more like [[0, 0],[0.8,0],[0.9,0.1],...]. Is your issue w/ the values or the shape? or both? I'm running into issues visualizing the converted tiny_llama model, can you maybe give me your reproduction steps for producing the first visualization? |
Hi @pkgoogle ,
and i expect the value should be like sin or cos value, because model can get so i think the |
It may be how I'm creating the tiny_llama model, which was with nightly... can you tell me which commit ( |
Marking this issue as stale since it has been open for 7 days with no activity. This issue will be closed if no further activity occurs. |
@pkgoogle , i use master branch,.... sometimes the nightly can't work correctly.... |
Hi @pkgoogle , i using below commit id , you can reference it thanks.
|
I was able to replicate with the model produced with that commit. I haven't verified wether the value you see is degenerate. |
Hi @pkgoogle , thanks for your reply. Actually I know how to repe work, but i need to double confirm with the computer graph. i still confuse the rope operation in tflite computer graph. can you tell me how does the op working in the graph? thanks. |
Description of the bug:
hi @pkgoogle,
i have some question about computer graph with tinyllama.
tok embedding
.stable-hlo composite op
, can i know how to work in this? i know the op fuse is a optimization method. but why choose below op to fuse.stable-hlo composite op
is22
.graph input
.Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: