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

Demo for functional roberta #6344

Open
Sudharsan-V opened this issue Mar 13, 2024 · 4 comments
Open

Demo for functional roberta #6344

Sudharsan-V opened this issue Mar 13, 2024 · 4 comments

Comments

@Sudharsan-V
Copy link
Contributor

Update the Roberta demo to be compatible with the ttnn_functional_roberta model.

@boris-drazic
Copy link
Contributor

Please use optimized bert implementation as underlying model models/demos/bert/tt/ttnn_optimized_bert.py

@jayasuryamaganuru
Copy link
Contributor

jayasuryamaganuru commented Mar 19, 2024

commit for demo roberta token classification task - commit

dataset - conll2003

Demo for token classification task is in progress

@Sudharsan-V
Copy link
Contributor Author

Sudharsan-V commented Mar 20, 2024

The demo for functional roberta QA is updated.
Corresponding PR: #6601

Sample Output:

"context" : "Johann Joachim Winckelmann was a German art historian and archaeologist. He was a pioneering Hellenist who first articulated the difference between Greek, Greco-Roman and Roman art. The prophet and founding hero of modern archaeology, Winckelmann was one of the founders of scientific archaeology and first applied the categories of style on a large, systematic basis to the history of art.",
"question" : "What discipline did Winkelmann create?"

Output: Joachim Winckelmann was

Results:

exact: 0.0
F1: 3.611111111111111

@kkeerthana0573
Copy link
Contributor

kkeerthana0573 commented May 28, 2024

The demo for functional RoBERTa QA is updated. Corresponding commit: commit.
RoBERTa model uses optimized bert implementation as underlying model models/demos/bert/tt/ttnn_optimized_bert.py

Sample Outputs:

    "context" : "Johann Joachim Winckelmann was a German art historian and archaeologist. He was a pioneering Hellenist who first articulated the difference between Greek, Greco-Roman and Roman art. The prophet and founding hero of modern archaeology, Winckelmann was one of the founders of scientific archaeology and first applied the categories of style on a large, systematic basis to the history of art.",
    "question" : "What discipline did Winkelmann create?"
    
    "answer": "archaeology and first"
    "context" : "In Afghanistan, the mujahideen's victory against the Soviet Union in the 1980s did not lead to justice and prosperity, due to a vicious and destructive civil war between political and tribal warlords, making Afghanistan one of the poorest countries on earth. In 1992, the Democratic Republic of Afghanistan ruled by communist forces collapsed, and democratic Islamist elements of mujahdeen founded the Islamic State of Afghanistan. In 1996, a more conservative and anti-democratic Islamist movement known as the Taliban rose to power, defeated most of the warlords and took over roughly 80% of Afghanistan.",
    "question" : "Who ruled the duchy of Normandy"
    
    "answer": "Richard I"

Metrics used:

  • exact: 87.5
  • F1: 90.27777777777777

Observations are documented here.

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

No branches or pull requests

5 participants