Skip to content

Commit

Permalink
llama.swiftui : add tinyllama 1.1B F16
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 18, 2023
1 parent 6ff39b1 commit 0e18b2e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/llama.swiftui/llama.swiftui/UI/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,22 @@ 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)",
modelUrl: "https://huggingface.co/ggml-org/models/resolve/main/phi-2/ggml-model-q4_0.gguf?download=true",
filename: "phi-2-q4_0.gguf"
)
.font(.system(size: 12))
.frame(maxWidth: .infinity, alignment: .leading)

DownloadButton(
llamaState: llamaState,
Expand All @@ -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,
Expand All @@ -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()
Expand Down

0 comments on commit 0e18b2e

Please sign in to comment.