Skip to content

Commit 46566b5

Browse files
shoumikhinmergennachin
authored andcommitted
Fix generation speed calculation. (#2932)
Summary: Pull Request resolved: #2932 overriding_review_checks_triggers_an_audit_and_retroactive_review Oncall Short Name: executorch Differential Revision: D55904722 fbshipit-source-id: 6057bc75f812e5ae9dd057bbed7291a539d80ff6 (cherry picked from commit 8cabeac)
1 parent 4e7aebf commit 46566b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ struct ContentView: View {
215215
tokens.append(token)
216216
if tokens.count > 2 {
217217
let text = tokens.joined()
218-
let count = text.count
218+
let count = tokens.count
219219
tokens = []
220220
DispatchQueue.main.async {
221221
withAnimation {

0 commit comments

Comments
 (0)