Added 'Image recognition' text to available models, also updated list of models
This commit is contained in:
1 parent
999f7a7151
commit
0c9fd6685b
2 files changed
+4
-3
No files matched your search
@@ -1,3 +1,3 @@
|
||||
# available_models.py
|
||||
# There's no API for this, sorry
|
||||
available_models = {"llama3": {"url": "https://ollama.com/library/llama3", "tags": ["latest", "70b", "8b", "instruct", "text", "70b-instruct", "70b-text", "70b-instruct-q4_0", "70b-instruct-q4_1", "70b-instruct-q5_0", "70b-instruct-q5_1", "70b-instruct-q8_0", "70b-instruct-q2_K", "70b-instruct-q3_K_S", "70b-instruct-q3_K_M", "70b-instruct-q3_K_L", "70b-instruct-q4_K_S", "70b-instruct-q4_K_M", "70b-instruct-q5_K_S", "70b-instruct-q5_K_M", "70b-instruct-q6_K", "70b-instruct-fp16", "70b-text-q4_0", "70b-text-q4_1", "70b-text-q5_0", "70b-text-q5_1", "70b-text-q8_0", "70b-text-q2_K", "70b-text-q3_K_S", "70b-text-q3_K_M", "70b-text-q3_K_L", "70b-text-q4_K_S", "70b-text-q4_K_M", "70b-text-q5_K_S", "70b-text-q5_K_M", "70b-text-q6_K", "70b-text-fp16", "8b-text", "8b-instruct-q4_0", "8b-instruct-q4_1", "8b-instruct-q5_0", "8b-instruct-q5_1", "8b-instruct-q8_0", "8b-instruct-q2_K", "8b-instruct-q3_K_S", "8b-instruct-q3_K_M", "8b-instruct-q3_K_L", "8b-instruct-q4_K_S", "8b-instruct-q4_K_M", "8b-instruct-q5_K_S", "8b-instruct-q5_K_M", "8b-instruct-q6_K", "8b-instruct-fp16", "8b-text-q4_0", "8b-text-q4_1", "8b-text-q5_0", "8b-text-q5_1", "8b-text-q8_0", "8b-text-q2_K", "8b-text-q3_K_S", "8b-text-q3_K_M", "8b-text-q3_K_L", "8b-text-q4_K_S", "8b-text-q4_K_M", "8b-text-q5_K_S", "8b-text-q6_K", "8b-text-fp16"]}, "phi3": {"url": "https://ollama.com/library/phi3", "tags": ["latest", "3.8b", "instruct", "mini", "3.8b-mini-instruct-4k-q4_K_M", "3.8b-mini-instruct-4k-fp16"]}, "wizardlm2": {"url": "https://ollama.com/library/wizardlm2", "tags": ["latest", "8x22b", "7b", "8x22b-q4_0", "8x22b-q8_0", "8x22b-q2_K", "8x22b-fp16", "7b-q4_0", "7b-q4_1", "7b-q5_0", "7b-q5_1", "7b-q8_0", "7b-q2_K", "7b-q3_K_S", "7b-q3_K_M", "7b-q3_K_L", "7b-q4_K_S", "7b-q4_K_M", "7b-q5_K_S", "7b-q5_K_M", "7b-q6_K", "7b-fp16"]}, "mistral": {"url": "https://ollama.com/library/mistral", "tags": ["latest", "7b", "instruct", "text", "v0.1", "v0.2", "7b-instruct", "7b-text", "7b-instruct-q4_0", "7b-instruct-q4_1", "7b-instruct-q5_0", "7b-instruct-q5_1", "7b-instruct-q8_0", "7b-instruct-q2_K", "7b-instruct-q3_K_S", "7b-instruct-q3_K_M", "7b-instruct-q3_K_L", "7b-instruct-q4_K_S", "7b-instruct-q4_K_M", "7b-instruct-q5_K_S", "7b-instruct-q5_K_M", "7b-instruct-q6_K", "7b-instruct-fp16", "7b-text-q4_0", "7b-text-q4_1", "7b-text-q5_0", "7b-text-q5_1", "7b-text-q8_0", "7b-text-q2_K", "7b-text-q3_K_S", "7b-text-q3_K_M", "7b-text-q3_K_L", "7b-text-q4_K_S", "7b-text-q4_K_M", "7b-text-q5_K_S", "7b-text-q5_K_M", "7b-text-q6_K", "7b-text-fp16", "7b-instruct-v0.2-q4_0", "7b-instruct-v0.2-q4_1", "7b-instruct-v0.2-q5_0", "7b-instruct-v0.2-q5_1", "7b-instruct-v0.2-q8_0", "7b-instruct-v0.2-q2_K", "7b-instruct-v0.2-q3_K_S", "7b-instruct-v0.2-q3_K_M", "7b-instruct-v0.2-q3_K_L", "7b-instruct-v0.2-q4_K_S", "7b-instruct-v0.2-q4_K_M", "7b-instruct-v0.2-q5_K_S", "7b-instruct-v0.2-q5_K_M", "7b-instruct-v0.2-q6_K", "7b-instruct-v0.2-fp16", "7b-text-v0.2-q4_0", "7b-text-v0.2-q4_1", "7b-text-v0.2-q5_0", "7b-text-v0.2-q5_1", "7b-text-v0.2-q8_0", "7b-text-v0.2-q2_K", "7b-text-v0.2-q3_K_S", "7b-text-v0.2-q3_K_M", "7b-text-v0.2-q3_K_L", "7b-text-v0.2-q4_K_S", "7b-text-v0.2-q4_K_M", "7b-text-v0.2-q5_K_S", "7b-text-v0.2-q5_K_M", "7b-text-v0.2-q6_K", "7b-text-v0.2-fp16"]}, "gemma": {"url": "https://ollama.com/library/gemma", "tags": ["latest", "7b", "2b", "instruct", "text", "v1.1", "7b-instruct", "7b-text", "7b-v1.1", "7b-instruct-q4_0", "7b-instruct-q4_1", "7b-instruct-q5_0", "7b-instruct-q5_1", "7b-instruct-q8_0", "7b-instruct-q2_K", "7b-instruct-q3_K_S", "7b-instruct-q3_K_M", "7b-instruct-q3_K_L", "7b-instruct-q4_K_S", "7b-instruct-q4_K_M", "7b-instruct-q5_K_S", "7b-instruct-q5_K_M", "7b-instruct-q6_K", "7b-instruct-fp16", "7b-text-q4_0", "7b-text-q4_1", "7b-text-q5_0", "7b-text-q5_1", "7b-text-q8_0", "7b-text-q2_K", "7b-text-q3_K_S", "7b-text-q3_K_M", "7b-text-q3_K_L", "7b-text-q4_K_S", "7b-text-q4_K_M", "7b-text-q5_K_S", "7b-text-q5_K_M", "7b-text-q6_K", "7b-text-fp16", "7b-instruct-v1.1-q4_0", "7b-instruct-v1.1-q4_1", "7b-instruct-v1.1-q5_0", "7b-instruct-v1.1-q5_1", "7b-instruct-v1.1-q8_0", "7b-instruct-v1.1-q2_K", "7b-instruct-v1.1-q3_K_S", "7b-instruct-v1.1-q3_K_M", "7b-instruct-v1.1-q3_K_L", "7b-instruct-v1.1-q4_K_S", "7b-instruct-v1.1-q4_K_M", "7b-instruct-v1.1-q5_K_S", "7b-instruct-v1.1-q5_K_M", "7b-instruct-v1.1-q6_K", "7b-instruct-v1.1-fp16", "2b-instruct", "2b-text", "2b-v1.1", "2b-instruct-q4_0", "2b-instruct-q4_1", "2b-instruct-q5_0", "2b-instruct-q5_1", "2b-instruct-q8_0", "2b-instruct-q2_K", "2b-instruct-q3_K_S", "2b-instruct-q3_K_M", "2b-instruct-q3_K_L", "2b-instruct-q4_K_S", "2b-instruct-q4_K_M", "2b-instruct-q5_K_S", "2b-instruct-q5_K_M", "2b-instruct-q6_K", "2b-instruct-fp16", "2b-text-q4_0", "2b-text-q4_1", "2b-text-q5_0", "2b-text-q5_1", "2b-text-q8_0", "2b-text-q2_K", "2b-text-q3_K_S", "2b-text-q3_K_M", "2b-text-q3_K_L", "2b-text-q4_K_S", "2b-text-q4_K_M", "2b-text-q5_K_S", "2b-text-q5_K_M", "2b-text-q6_K", "2b-text-fp16", "2b-instruct-v1.1-q4_0", "2b-instruct-v1.1-q4_Line truncated
|
||||
available_models = {"llama3": {"url": "https://ollama.com/library/llama3", "tags": ["latest", "70b", "8b", "instruct", "text", "70b-instruct", "70b-text", "70b-instruct-q4_0", "70b-instruct-q4_1", "70b-instruct-q5_0", "70b-instruct-q5_1", "70b-instruct-q8_0", "70b-instruct-q2_K", "70b-instruct-q3_K_S", "70b-instruct-q3_K_M", "70b-instruct-q3_K_L", "70b-instruct-q4_K_S", "70b-instruct-q4_K_M", "70b-instruct-q5_K_S", "70b-instruct-q5_K_M", "70b-instruct-q6_K", "70b-instruct-fp16", "70b-text-q4_0", "70b-text-q4_1", "70b-text-q5_0", "70b-text-q5_1", "70b-text-q8_0", "70b-text-q2_K", "70b-text-q3_K_S", "70b-text-q3_K_M", "70b-text-q3_K_L", "70b-text-q4_K_S", "70b-text-q4_K_M", "70b-text-q5_K_S", "70b-text-q5_K_M", "70b-text-q6_K", "70b-text-fp16", "8b-text", "8b-instruct-q4_0", "8b-instruct-q4_1", "8b-instruct-q5_0", "8b-instruct-q5_1", "8b-instruct-q8_0", "8b-instruct-q2_K", "8b-instruct-q3_K_S", "8b-instruct-q3_K_M", "8b-instruct-q3_K_L", "8b-instruct-q4_K_S", "8b-instruct-q4_K_M", "8b-instruct-q5_K_S", "8b-instruct-q5_K_M", "8b-instruct-q6_K", "8b-instruct-fp16", "8b-text-q4_0", "8b-text-q4_1", "8b-text-q5_0", "8b-text-q5_1", "8b-text-q8_0", "8b-text-q2_K", "8b-text-q3_K_S", "8b-text-q3_K_M", "8b-text-q3_K_L", "8b-text-q4_K_S", "8b-text-q4_K_M", "8b-text-q5_K_S", "8b-text-q5_K_M", "8b-text-q6_K", "8b-text-fp16"], "image": False}, "phi3": {"url": "https://ollama.com/library/phi3", "tags": ["latest", "14b", "3.8b", "instruct", "medium", "mini", "14b-instruct", "14b-medium-4k-instruct-f16", "14b-medium-4k-instruct-q4_0", "14b-medium-128k-instruct-q4_0", "14b-medium-4k-instruct-q4_1", "14b-medium-128k-instruct-q4_1", "14b-medium-4k-instruct-q5_0", "14b-medium-4k-instruct-q5_1", "14b-medium-4k-instruct-q8_0", "14b-medium-4k-instruct-q2_K", "14b-medium-4k-instruct-q3_K_S", "14b-medium-4k-instruct-q3_K_M", "14b-medium-4k-instruct-q3_K_L", "14b-medium-4k-instruct-q4_K_S", "14b-medium-4k-instruct-q4_K_M", "14b-medium-4k-instruct-q5_K_S", "14b-medium-4k-instruct-q5_K_M", "14b-medium-4k-instruct-q6_K", "3.8b-mini-instruct-4k-q4_K_M", "3.8b-mini-instruct-4k-fp16", "medium-128k"], "image": False}, "aya": {"url": "https://ollama.com/library/aya", "tags": ["latest", "35b", "8b", "35b-23", "35b-23-f16", "35b-23-q4_0", "35b-23-q4_1", "35b-23-q5_0", "35b-23-q5_1", "35b-23-q8_0", "35b-23-q2_K", "35b-23-q3_K_S", "35b-23-q3_K_M", "35b-23-q3_K_L", "35b-23-q4_K_S", "35b-23-q4_K_M", "35b-23-q5_K_S", "35b-23-q5_K_M", "35b-23-q6_K", "8b-23", "8b-23-f16", "8b-23-q4_0", "8b-23-q4_1", "8b-23-q5_0", "8b-23-q5_1", "8b-23-q8_0", "8b-23-q2_K", "8b-23-q3_K_S", "8b-23-q3_K_M", "8b-23-q3_K_L", "8b-23-q4_K_S", "8b-23-q4_K_M", "8b-23-q5_K_S", "8b-23-q5_K_M", "8b-23-q6_K"], "image": False}, "mistral": {"url": "https://ollama.com/library/mistral", "tags": ["latest", "7b", "instruct", "text", "v0.1", "v0.2", "v0.3", "7b-instruct", "7b-text", "7b-instruct-q4_0", "7b-instruct-q4_1", "7b-instruct-q5_0", "7b-instruct-q5_1", "7b-instruct-q8_0", "7b-instruct-q2_K", "7b-instruct-q3_K_S", "7b-instruct-q3_K_M", "7b-instruct-q3_K_L", "7b-instruct-q4_K_S", "7b-instruct-q4_K_M", "7b-instruct-q5_K_S", "7b-instruct-q5_K_M", "7b-instruct-q6_K", "7b-instruct-fp16", "7b-text-q4_0", "7b-text-q4_1", "7b-text-q5_0", "7b-text-q5_1", "7b-text-q8_0", "7b-text-q2_K", "7b-text-q3_K_S", "7b-text-q3_K_M", "7b-text-q3_K_L", "7b-text-q4_K_S", "7b-text-q4_K_M", "7b-text-q5_K_S", "7b-text-q5_K_M", "7b-text-q6_K", "7b-text-fp16", "7b-instruct-v0.2-q4_0", "7b-instruct-v0.3-q4_0", "7b-instruct-v0.3-q4_1", "7b-instruct-v0.2-q4_1", "7b-instruct-v0.2-q5_0", "7b-instruct-v0.3-q5_0", "7b-instruct-v0.3-q5_1", "7b-instruct-v0.2-q5_1", "7b-instruct-v0.2-q8_0", "7b-instruct-v0.3-q8_0", "7b-instruct-v0.2-q2_K", "7b-instruct-v0.3-q2_K", "7b-instruct-v0.2-q3_K_S", "7b-instruct-v0.3-q3_K_S", "7b-instruct-v0.3-q3_K_M", "7b-instruct-v0.2-q3_K_M", "7b-instruct-v0.2-q3_K_L", "7b-instruct-v0.3-q3_K_L", "7b-instruct-v0.3-q4_K_S", "7b-instruct-v0.2-q4_K_S", "7b-instruct-v0.3-q4_K_M", "7b-instruct-v0.2-q4_K_M", "7b-instruct-v0.2-q5_K_S", "7b-instruct-v0.3-q5_K_S", "7b-instruct-v0.3-q5_K_M", "7b-instruct-v0.2-q5_K_M", "7b-instruct-v0.2-q6_K", "7b-instruct-v0.3-q6_K", "7b-instruct-v0.3-fp16", "7b-instruct-v0.2-fp16", "7b-text-v0.2-q4_0", "7b-text-v0.2-q4_1", "7b-text-v0.2-q5_0", "7b-text-v0.2-q5_1", "7b-text-v0.2-q8_0", "7b-text-v0.2-q2_K", "7b-text-v0.2-q3_K_S", "7b-text-v0.2-q3_K_M", "7b-text-v0.2-q3_K_L", "7b-text-v0.2-q4_K_S", "7b-text-v0.2-q4_K_M", "7b-text-v0.2-q5_K_S", "7b-text-v0.2-q5_K_M", "7b-text-v0.2-q6_K", "7b-text-v0.2-fp16"], "image": False}, "gemma": {"url": "https://ollama.com/library/gemma", "tags": ["latest", "7b", "2b", "instruct", "text", "v1.1", "7b-instruct", "7b-text", "7b-v1.1", "7b-instruct-q4_0", "7b-instruct-q4_1", "7b-instruct-q5_0", "7b-instruct-q5_1", "7b-instruct-q8_0", "7b-instruct-q2_K", "7b-instruct-q3_K_S", "7b-instruct-q3_K_M", "7b-instruct-q3_K_L", "7b-instruct-q4_K_S", "7b-instruct-q4_K_M", "7b-instruct-q5_K_S", "7b-instruct-q5_K_M", "7b-instruct-q6_K", "7b-instructLine truncated
|
||||
+3
-2
@@ -212,7 +212,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
|
||||
def verify_if_image_can_be_used(self, pspec=None, user_data=None):
|
||||
if self.model_drop_down.get_selected_item() == None: return True
|
||||
selected = self.model_drop_down.get_selected_item().get_string().split(":")[0]
|
||||
if selected in ['llava']:
|
||||
if selected in ['llava', 'bakllava', 'moondream', 'llava-llama3']:
|
||||
self.image_button.set_sensitive(True)
|
||||
return True
|
||||
else:
|
||||
@@ -576,7 +576,8 @@ class AlpacaWindow(Adw.ApplicationWindow):
|
||||
self.available_model_list_box.remove_all()
|
||||
for name, model_info in available_models.items():
|
||||
model = Adw.ActionRow(
|
||||
title = name
|
||||
title = name,
|
||||
subtitle = "Image recognition" if model_info["image"] else None
|
||||
)
|
||||
link_button = Gtk.Button(
|
||||
icon_name = "web-browser-symbolic",
|
||||
|
||||
Reference in new issue
Block a user