Skip to content

Commit 0e18b2e

Browse files
committed
llama.swiftui : add tinyllama 1.1B F16
1 parent 6ff39b1 commit 0e18b2e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/llama.swiftui/llama.swiftui/UI/ContentView.swift

+10-2
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,22 @@ struct ContentView: View {
9191
)
9292
.font(.system(size: 12))
9393

94+
DownloadButton(
95+
llamaState: llamaState,
96+
modelName: "TinyLlama-1.1B (F16, 2.2 GiB)",
97+
modelUrl: "https://huggingface.co/ggml-org/models/resolve/main/tinyllama-1.1b/ggml-model-f16.gguf?download=true",
98+
filename: "tinyllama-1.1b-f16.gguf"
99+
)
100+
.font(.system(size: 12))
101+
.frame(maxWidth: .infinity, alignment: .leading)
102+
94103
DownloadButton(
95104
llamaState: llamaState,
96105
modelName: "Phi-2.7B (Q4_0, 1.6 GiB)",
97106
modelUrl: "https://huggingface.co/ggml-org/models/resolve/main/phi-2/ggml-model-q4_0.gguf?download=true",
98107
filename: "phi-2-q4_0.gguf"
99108
)
100109
.font(.system(size: 12))
101-
.frame(maxWidth: .infinity, alignment: .leading)
102110

103111
DownloadButton(
104112
llamaState: llamaState,
@@ -107,6 +115,7 @@ struct ContentView: View {
107115
filename: "phi-2-q8_0.gguf"
108116
)
109117
.font(.system(size: 12))
118+
.frame(maxWidth: .infinity, alignment: .leading)
110119

111120
DownloadButton(
112121
llamaState: llamaState,
@@ -115,7 +124,6 @@ struct ContentView: View {
115124
filename: "mistral-7b-v0.1.Q4_0.gguf"
116125
)
117126
.font(.system(size: 12))
118-
.frame(maxWidth: .infinity, alignment: .leading)
119127

120128
Button("Clear downloaded models") {
121129
ContentView.cleanupModelCaches()

0 commit comments

Comments
 (0)