Open Sudharsan-V opened 5 months ago
Sub module Tests for TrocrAttention , TrocrDecoderLayer is done - commit
The ttnn pipeline for the trocr Decoder sub-module is enabled with PyTorch Embedding layer. The pcc for the sub-modules are updated in the sheet Corresponding WIP-commit
The reference implementation for TrOCRForCausalLM is completed, PCC for all the sub-modules are all 1.0 corresponding commit
pipeline for reference implementation vision encoder decoder model is in progress, corresponding - WIP-commit
Reference implementation for trocr is completed. corresponding PR - link
Commit for ttnn functional implementation for trocr and demo is created. corresponding commit
w.r.t device_performance script for trocr, facing the warning related to DRAM buffers multiple times
WARNING [0m | Profiler DRAM buffers were full, markers were dropped! device 0, worker core 1, 1, Risc NCRISC, bufferEndIndex = 15996
followed by assertion error while appending device data
Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/ubuntu/jayasurya/fresh/tt-metal/tt_eager/tracy.py", line 346, in <module> main() File "/home/ubuntu/jayasurya/fresh/tt-metal/tt_eager/tracy.py", line 330, in main generate_report(options.output_folder, options.name_append, options.child_functions) File "/home/ubuntu/jayasurya/fresh/tt-metal/tt_eager/tracy.py", line 166, in generate_report process_ops(outFolder, nameAppend, True) File "/home/ubuntu/jayasurya/fresh/tt-metal/tt_metal/tools/profiler/process_ops_logs.py", line 526, in process_ops deviceOps = append_device_data(ops, PROFILER_LOGS_DIR) File "/home/ubuntu/jayasurya/fresh/tt-metal/tt_metal/tools/profiler/process_ops_logs.py", line 193, in append_device_data assert len(deviceOps[device]) == len( AssertionError: Device data mismatch. Expected 5277 but received 2839 ops on device 0
Steps to reproduce:
cd tt-metal
git checkout vignesh/trocr_ttnn
models/experimental/functional_trocr/demo/
./tt_metal/tools/profiler/profile_this.py -n trocr -c "pytest --disable-warnings models/experimental/functional_trocr/demo/demo_trocr_inference_device_OPs.py"
ttnn implementation and demo file for functional trocr is completed. corresponding PR : #10394
Enable support for TrOcr model using ttnn ops.