1
0

Доработка rag, удаление скриптов моделей, актуализация README

This commit is contained in:
2025-08-31 00:51:42 +08:00
parent c408972b45
commit defc30cad0
108 changed files with 635 additions and 745 deletions
+28
View File
@@ -0,0 +1,28 @@
{
// Используйте IntelliSense, чтобы узнать о возможных атрибутах.
// Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов.
// Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "rag",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/rag/rag.py",
"args": [
"--show-stats",
"--interactive",
"--use-rank",
// "--stream",
"--show-prompt",
"--sys-prompt",
"${workspaceFolder}/rag/lis-sp.md",
"--qdrant-collection",
"rag-2000-300",
"--query",
"привет"
],
"console": "integratedTerminal"
}
]
}
+3 -5
View File
@@ -2,8 +2,7 @@
Набор скриптов для быстрого запуска локальных LLM. Набор скриптов для быстрого запуска локальных LLM.
Модели подбираются вручную, примерно в пределазх 40 млрд параметров (обычно, максимум 32b или 34b). Модели примерно до 40 млрд параметров (обычно 32b) наиболее реально запускать на домашних ПК разных мощностей.
Такие модели наиболее реально запускать на домашних ПК разных мощностей.
Меньше параметров → меньше памяти на диске и в ОЗУ → выше скорость (tps) → ниже качество. Меньше параметров → меньше памяти на диске и в ОЗУ → выше скорость (tps) → ниже качество.
@@ -16,10 +15,9 @@
``` ```
./ ./
├── models/ # Директория со скриптами установки моделей ollama
├── rag/ # Директория для работы с RAG ├── rag/ # Директория для работы с RAG
├── up # Скрипт для запуска ollama + open-webui ├── up # Скрипт для запуска docker-стека
├── down # Скрипт для остановки ollama + open-webui ├── down # Скрипт для остановки docker-стека
├── ollama # Скрипт для выполнения произвольных команд ollama ├── ollama # Скрипт для выполнения произвольных команд ollama
├── ollama.code-workspace # Конфигурация VSCode Workspace ├── ollama.code-workspace # Конфигурация VSCode Workspace
└── README.md # Этот файл └── README.md # Этот файл
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codegemma/tags
docker exec -it ai-ollama ollama run codegemma:2b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codegemma/tags
docker exec -it ai-ollama ollama run codegemma:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codellama/tags
docker exec -it ai-ollama ollama run codellama:13b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codellama/tags
docker exec -it ai-ollama ollama run codellama:34b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codellama/tags
docker exec -it ai-ollama ollama run codellama:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codeqwen/tags
docker exec -it ai-ollama ollama run codeqwen:1.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codeqwen/tags
docker exec -it ai-ollama ollama run codeqwen:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/codestral/tags
docker exec -it ai-ollama ollama run codestral:22b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepcoder/tags
docker exec -it ai-ollama ollama run deepcoder:1.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepcoder/tags
docker exec -it ai-ollama ollama run deepcoder:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-coder-v2/tags
docker exec -it ai-ollama ollama run deepseek-coder-v2:16b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-coder/tags
docker exec -it ai-ollama ollama run deepseek-coder:1.3b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-coder/tags
docker exec -it ai-ollama ollama run deepseek-coder:33b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-coder/tags
docker exec -it ai-ollama ollama run deepseek-coder:6.7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-r1/tags
docker exec -it ai-ollama ollama run deepseek-r1:1.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-r1/tags
docker exec -it ai-ollama ollama run deepseek-r1:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-r1/tags
docker exec -it ai-ollama ollama run deepseek-r1:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-r1/tags
docker exec -it ai-ollama ollama run deepseek-r1:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/deepseek-r1/tags
docker exec -it ai-ollama ollama run deepseek-r1:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/devstral/tags
docker exec -it ai-ollama ollama run devstral:24b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/dolphin3/tags
docker exec -it ai-ollama ollama run dolphin3:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma/tags
docker exec -it ai-ollama ollama run gemma:2b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma/tags
docker exec -it ai-ollama ollama run gemma:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3/tags
docker exec -it ai-ollama ollama run gemma3:12b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3/tags
docker exec -it ai-ollama ollama run gemma3:1b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3/tags
docker exec -it ai-ollama ollama run gemma3:270m --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3/tags
docker exec -it ai-ollama ollama run gemma3:27b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3/tags
docker exec -it ai-ollama ollama run gemma3:4b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3n/tags
docker exec -it ai-ollama ollama run gemma3n:e2b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gemma3n/tags
docker exec -it ai-ollama ollama run gemma3n:e4b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/gpt-oss/tags
docker exec -it ai-ollama ollama run gpt-oss:20b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/granite-code/tags
docker exec -it ai-ollama ollama run granite-code:20b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/granite-code/tags
docker exec -it ai-ollama ollama run granite-code:34b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/granite-code/tags
docker exec -it ai-ollama ollama run granite-code:3b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/granite-code/tags
docker exec -it ai-ollama ollama run granite-code:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llama2/tags
docker exec -it ai-ollama ollama run llama2:13b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llama2/tags
docker exec -it ai-ollama ollama run llama2:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llama3.1/tags
docker exec -it ai-ollama ollama run llama3.1:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llama3.2/tags
docker exec -it ai-ollama ollama run llama3.2:1b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llama3.2/tags
docker exec -it ai-ollama ollama run llama3.2:3b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llama3/tags
docker exec -it ai-ollama ollama run llama3:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/llava-llama3/tags
docker exec -it ai-ollama ollama run llava-llama3:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/magistral/tags
docker exec -it ai-ollama ollama run magistral:24b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/mistral-nemo/tags
docker exec -it ai-ollama ollama run mistral-nemo:12b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/mistral-small/tags
docker exec -it ai-ollama ollama run mistral-small:22b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/mistral-small/tags
docker exec -it ai-ollama ollama run mistral-small:24b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/mistral/tags
docker exec -it ai-ollama ollama run mistral:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/mixtral/tags
docker exec -it ai-ollama ollama run mixtral:8x7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/mxbai-embed-large/tags
../ollama pull mxbai-embed-large:latest --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/nomic-embed-text/tags
../ollama pull nomic-embed-text:latest --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/openthinker/tags
docker exec -it ai-ollama ollama run openthinker:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/openthinker/tags
docker exec -it ai-ollama ollama run openthinker:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi/tags
docker exec -it ai-ollama ollama run phi:2.7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi3.5/tags
docker exec -it ai-ollama ollama run phi3.5:3.8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi3/tags
docker exec -it ai-ollama ollama run phi3:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi3/tags
docker exec -it ai-ollama ollama run phi3:3.8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi3/tags
docker exec -it ai-ollama ollama run phi3:instruct --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi3/tags
docker exec -it ai-ollama ollama run phi3:medium --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi3/tags
docker exec -it ai-ollama ollama run phi3:mini --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi4/tags
docker exec -it ai-ollama ollama run phi4:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi4-mini-reasoning/tags
docker exec -it ai-ollama ollama run phi4-mini-reasoning:3.8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi4-mini/tags
docker exec -it ai-ollama ollama run phi4-mini:3.8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/phi4-reasoning/tags
docker exec -it ai-ollama ollama run phi4-reasoning:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen/tags
docker exec -it ai-ollama ollama run qwen:0.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen/tags
docker exec -it ai-ollama ollama run qwen:1.8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen/tags
docker exec -it ai-ollama ollama run qwen:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen/tags
docker exec -it ai-ollama ollama run qwen:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen/tags
docker exec -it ai-ollama ollama run qwen:4b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen/tags
docker exec -it ai-ollama ollama run qwen:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5-coder/tags
docker exec -it ai-ollama ollama run qwen2.5-coder:0.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5-coder/tags
docker exec -it ai-ollama ollama run qwen2.5-coder:1.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5-coder/tags
docker exec -it ai-ollama ollama run qwen2.5-coder:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5-coder/tags
docker exec -it ai-ollama ollama run qwen2.5-coder:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5-coder/tags
docker exec -it ai-ollama ollama run qwen2.5-coder:3b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5-coder/tags
docker exec -it ai-ollama ollama run qwen2.5-coder:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5/tags
docker exec -it ai-ollama ollama run qwen2.5:0.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5/tags
docker exec -it ai-ollama ollama run qwen2.5:1.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5/tags
docker exec -it ai-ollama ollama run qwen2.5:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5/tags
docker exec -it ai-ollama ollama run qwen2.5:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5/tags
docker exec -it ai-ollama ollama run qwen2.5:3b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2.5/tags
docker exec -it ai-ollama ollama run qwen2.5:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2/tags
docker exec -it ai-ollama ollama run qwen2:0.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2/tags
docker exec -it ai-ollama ollama run qwen2:1.5b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen2/tags
docker exec -it ai-ollama ollama run qwen2:7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3-coder/tags
docker exec -it ai-ollama ollama run qwen3-coder:30b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:0.6b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:1.7b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:14b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:30b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:4b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwen3/tags
docker exec -it ai-ollama ollama run qwen3:8b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/qwq/tags
docker exec -it ai-ollama ollama run qwq:32b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/smollm2/tags
docker exec -it ai-ollama ollama run smollm2:1.7m --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/smollm2/tags
docker exec -it ai-ollama ollama run smollm2:135m --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/smollm2/tags
docker exec -it ai-ollama ollama run smollm2:360m --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/stable-code/tags
docker exec -it ai-ollama ollama run stable-code:3b --verbose
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
# https://ollama.com/library/stable-code/tags
docker exec -it ai-ollama ollama run stable-code:instruct --verbose

Some files were not shown because too many files have changed in this diff Show More