Comments (1)
Hi @chenqianfzh,
Thank you for reaching out. While there is a converter from PyTorch execution traces to Chakra execution traces in Chakra (et_converter), it was previously incomplete.
To address this, changes have been made across three repositories: PARAM, Chakra, and ASTRA-sim:
- In PARAM, the trace_link.py tool is designed to merge PyTorch execution traces (covering CPU operators) with Kineto traces (focused on GPU operators), resulting in a unified execution file (View changes here)
- The PyTorch ET to Chakra ET converter has received significant enhancements, allowing it to seamlessly bridge and differentiate between GPU and CPU operations (View changes here)
- Additionally, ASTRA-sim has been updated to better distinguish between CPU and GPU operations (View changes here)
We will merge these changes once we confirm they work as expected.
For the next steps, you'll need to collect both the PyTorch execution traces and Kineto execution traces during the model's execution. Once gathered, use trace_link.py to combine the PyTorch ET with the Kineto ET. This merged trace can then be fed into the converter to produce a simulation-compatible Chakra execution trace. Please refer to the attached figure for clarification:
![Screenshot 2023-10-23 at 9 14 07 AM](https://private-user-images.githubusercontent.com/7621438/277348397-7227797b-1e19-4492-ae8f-ec787f255f0c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3OTAwMjIsIm5iZiI6MTcxNjc4OTcyMiwicGF0aCI6Ii83NjIxNDM4LzI3NzM0ODM5Ny03MjI3Nzk3Yi0xZTE5LTQ0OTItYWU4Zi1lYzc4N2YyNTVmMGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjdUMDYwMjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmZjMzc4MTJjZDY2NmRhMzkwOTA4ZjFhN2Y5Zjg2NmQ5NWMwMjE4MTE3Yjk3YmNhMjViNTQwM2YwZWJmYmUzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.8Y0GXWu1wD3Rff35JStBVEs_q6-xcXfjVMatU-L0DU0)
Lastly, Saeed from HP labs has shared some files to demonstrate the collection of PyTorch execution traces and Kineto traces. I recommend checking them out: examples.tgz
from chakra.
Related Issues (18)
- Is it possible to provide a base case code to get Chakra ET of DNN? HOT 3
- import error in pytorch2chakra_converter.py HOT 2
- Do you have a plan for integrating chakra to SST? HOT 4
- nccl:send not found HOT 2
- Unable to run et_generator to generate traces HOT 3
- lack of attribute 'parent' HOT 3
- Information redundancy HOT 4
- Missing Module for Execution Trace Converter HOT 1
- [Tutorial] Many nodes have a common parent node, but the node doesn't exist in PyTorch ET. HOT 7
- Would it be possible to provide an example of input files? HOT 3
- record_param_comms HOT 2
- Improving node time duration resolution HOT 1
- Segmentfault when running ns3 simulation HOT 1
- May I ask how to obtain PyTorch execution graph? HOT 2
- more traces? HOT 5
- may i ask is there any tutorial or example for this project? HOT 3
- How to distinguish communication domains between different communication (ET) node? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chakra.