]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama.swiftui : add tinyllama 1.1B F16
authorGeorgi Gerganov <redacted>
Mon, 18 Dec 2023 18:17:43 +0000 (20:17 +0200)
committerGeorgi Gerganov <redacted>
Mon, 18 Dec 2023 18:17:43 +0000 (20:17 +0200)
examples/llama.swiftui/llama.swiftui/UI/ContentView.swift

index 9cbe8efd66d1f75bf2a6036d0373365b13077416..c78f107b39e0ef792a510b7a13be0304a6920fda 100644 (file)
@@ -91,6 +91,15 @@ struct ContentView: View {
                 )
                 .font(.system(size: 12))
 
+                DownloadButton(
+                    llamaState: llamaState,
+                    modelName: "TinyLlama-1.1B (F16, 2.2 GiB)",
+                    modelUrl: "https://huggingface.co/ggml-org/models/resolve/main/tinyllama-1.1b/ggml-model-f16.gguf?download=true",
+                    filename: "tinyllama-1.1b-f16.gguf"
+                )
+                .font(.system(size: 12))
+                .frame(maxWidth: .infinity, alignment: .leading)
+
                 DownloadButton(
                     llamaState: llamaState,
                     modelName: "Phi-2.7B (Q4_0, 1.6 GiB)",
@@ -98,7 +107,6 @@ struct ContentView: View {
                     filename: "phi-2-q4_0.gguf"
                 )
                 .font(.system(size: 12))
-                .frame(maxWidth: .infinity, alignment: .leading)
 
                 DownloadButton(
                     llamaState: llamaState,
@@ -107,6 +115,7 @@ struct ContentView: View {
                     filename: "phi-2-q8_0.gguf"
                 )
                 .font(.system(size: 12))
+                .frame(maxWidth: .infinity, alignment: .leading)
 
                 DownloadButton(
                     llamaState: llamaState,
@@ -115,7 +124,6 @@ struct ContentView: View {
                     filename: "mistral-7b-v0.1.Q4_0.gguf"
                 )
                 .font(.system(size: 12))
-                .frame(maxWidth: .infinity, alignment: .leading)
 
                 Button("Clear downloaded models") {
                     ContentView.cleanupModelCaches()