From 51ba06122f0a023f9cf8e137126b9612198802eb Mon Sep 17 00:00:00 2001 From: eastriver Date: Sun, 25 Feb 2024 15:06:14 +0900 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee2326f..3e544e6 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ print(answer) if you want to initialize with huggingface model: ```swift let systemPrompt = "You are a sentient AI with emotions." -let bot = LLM(from: HuggingFaceModel("TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF", .Q2_K, template: .chatML(systemPrompt))) +let bot = await LLM(from: HuggingFaceModel("TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF", .Q2_K, template: .chatML(systemPrompt))) let question = bot.preProcess("What's the meaning of life?", []) let answer = await bot.getCompletion(from: question) print(answer)