Skip to content

Commit f428d03

Browse files
swolchokfacebook-github-bot
authored andcommitted
report a second digit of model loading time for iOS LLaMA demo (#4023)
Summary: Pull Request resolved: #4023 More precision is nice to have without being obtrusive. Reviewed By: cccclai Differential Revision: D58839875 fbshipit-source-id: cf5ac31542e097d8ab729006a6af40cd8211958e
1 parent f2b0595 commit f428d03

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
@@ -190,7 +190,7 @@ struct ContentView: View {
190190
if let error {
191191
message.text = "Model loading failed: error \((error as NSError).code)"
192192
} else {
193-
message.text = "Model loaded in \(String(format: "%.1f", loadTime)) s"
193+
message.text = "Model loaded in \(String(format: "%.2f", loadTime)) s"
194194
}
195195
messages.append(message)
196196
if error == nil {

0 commit comments

Comments
 (0)