You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue with Gemma model. I used swift playground. Here is sample code to reproduce below error:
import UIKit
import Tokenizers
func testTokenizer() async throws -> Tokenizer {
let tokenizer = try await AutoTokenizer.from(pretrained: "google/gemma-2b")
let inputIds = tokenizer("Today she took a train to the West")
return tokenizer
}
var greeting = "Hello, playground"
let t = try await testTokenizer()
t
error: Execution was interrupted, reason: .
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
Please advice me. Thank you so much!
The text was updated successfully, but these errors were encountered:
Generate new token if not already created and copy it
Modify your code to pass hfToken to HubApi
import UIKit
import Tokenizers
func testTokenizer()asyncthrows->Tokenizer{lettokenizer=tryawaitAutoTokenizer.from(
pretrained:"google/gemma-2b",
hubApi:HubApi(hfToken: MY_ACCESS_TOKEN))letinputIds=tokenizer("Today she took a train to the West")return tokenizer
}vargreeting="Hello, playground"lett=tryawaittestTokenizer()
t
I'm having an issue with Gemma model. I used swift playground. Here is sample code to reproduce below error:
error: Execution was interrupted, reason: .
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
Please advice me. Thank you so much!
The text was updated successfully, but these errors were encountered: