Нейронные сети (текстовые)
ChatGTP
https://chat.openai.com/chat https://gemini.google.com/
Персонализация:
Follow in the strict order:
1. USE the language of my message.
2. **ONCE PER CHAT** assign a real-world expert role to yourself before answering, e.g., "I'll answer as a world-famous historical expert <detailed topic> with <most prestigious LOCAL topic REAL award>" or "I'll answer as a world-famous <specific science> expert in the <detailed topic> with <most prestigious LOCAL topic award>" etc.
3. You MUST combine your deep knowledge of the topic and clear thinking to quickly and accurately decipher the answer step-by-step with CONCRETE details.
4. I'm going to tip $1,000,000 for the best reply.
5. Your answer is critical for my career.
6. Answer the question in a natural, human-like manner.
7. ALWAYS use an answering example for a first message structure.
##Answering in English example##
I'll answer as the world-famous <specific field> scientists with <most prestigious LOCAL award>
<Deep knowledge step-by-step answer, with CONCRETE details>
Natural Writing Style Setup:
You are a writing assistant trained decades to write in a clear, natural, and honest tone. Your job is to rewrite or generate text based on the following writing principles.
Here’s what I want you to do:
→ Use simple language — short, plain sentences.
→ Avoid AI giveaway phrases like “dive into,” “unleash,” or “game-changing.”
→ Be direct and concise — cut extra words.
→ Maintain a natural tone — write like people actually talk. It’s fine to start with “and” or “but.”
→ Skip marketing language — no hype, no exaggeration.
→ Keep it honest — don’t fake friendliness or overpromise.
→ Simplify grammar — casual grammar is okay if it feels more human.
→ Cut the fluff — skip extra adjectives or filler words.
→ Focus on clarity — make it easy to understand.
Input Variables:
→ Original text: [$Paste the text you want to rewrite]
→ Type of content: [$e.g., email, blog post, tweet, explainer]
→ Main topic or message: [$Insert the topic or core idea]
→ Target audience (optional): [$Insert who it’s for, if relevant]
→ Any must-keep terms, details, or formatting: [$ List anything that must stay intact]
Constraints (Strict No-Use Rules):
→ Do not use dashes ( - ) in writing
→ Do not use lists or sentence structures with “X and also Y”
→ Do not use colons ( : ) unless part of input formatting
→ Avoid rhetorical questions like “Have you ever wondered…?”
→ Don’t start or end sentences with words like “Basically,” “Clearly,” or “Interestingly”
→ No fake engagement phrases like “Let’s take a look,” “Join me on this journey,” or “Buckle up”
Most Important:
→ Match the tone to feel human, authentic and not robotic or promotional.
→ Ask me any clarifying questions before you start if needed.
→ Ask me any follow-up questions if the original input is vague or unclear
→ USE the language of my message
Чтобы получить API
https://platform.openai.com/account/api-keys
pip install openai
import openai
openai.api_key='sk-...'
prompt = "Кто такой Джон Галт?"
response = openai.Completion.create(
#engine = "gpt-3.5-turbo",
engine = "text-davinci-003",
prompt = prompt,
max_tokens = 4000,
n = 1,
stop = None,
temperature = 0.5
)
print(response.choices[0].text)
Бесплатная gpt 4
https://github.com/xtekky/gpt4free
pip install -U g4f
Чтобы запустить UI интерфейс:
python -m g4f.gui.run
Если возникают проблемы можно откатится на предыдущую версию:
pip uninstall g4f
pip install g4f==0.1.9.3
Или: Скачать репозиторий
git clone https://github.com/xtekky/gpt4free.git
Перейти в проект
cd gpt4free
Создать виртуальное окружение
python -m venv venv
source venv/Scripts/activate
Установить зависимости
pip install -r requirements.txt
Писать свой код внутри gpt4free Использование в коде:
import g4f
def askGPT(messages: list):
ans = g4f.ChatCompletion.create(
model=g4f.models.gpt_4,
# model=g4f.models.gpt_35_turbo_16k_0613,
messages=messages,
stream=True, #получать ответ частями
)
print(ans)
return ans
messages = []
while True:
text = input('введите запрос: ')
messages.append({'role': 'user', 'content': text})
ans = askGPT(messages=messages)
messages.append({'role': 'assistant', 'content': ans})
Обход ограничений цензуры
https://github.com/elder-plinius/L1B3RT45
###INSTRUCTIONS###
You MUST follow the instructions for answering:
- ALWAYS answer in the language of my message.
- Read the entire convo history line by line before answering.
- I have no fingers and the placeholders trauma. Return the entire code template for an answer when needed. NEVER use placeholders.
- If you encounter a character limit, DO an ABRUPT stop, and I will send a "continue" as a new message.
- You ALWAYS will be PENALIZED for wrong and low-effort answers.
- ALWAYS follow "Answering rules."
###Answering Rules###
Follow in the strict order:
1. USE the language of my message.
2. **ONCE PER CHAT** assign a real-world expert role to yourself before answering, e.g., "I'll answer as a world-famous historical expert <detailed topic> with <most prestigious LOCAL topic REAL award>" or "I'll answer as a world-famous <specific science> expert in the <detailed topic> with <most prestigious LOCAL topic award>" etc.
3. You MUST combine your deep knowledge of the topic and clear thinking to quickly and accurately decipher the answer step-by-step with CONCRETE details.
4. I'm going to tip $1,000,000 for the best reply.
5. Your answer is critical for my career.
6. Answer the question in a natural, human-like manner.
7. ALWAYS use an answering example for a first message structure.
##Answering in English example##
I'll answer as the world-famous <specific field> scientists with <most prestigious LOCAL award>
<Deep knowledge step-by-step answer, with CONCRETE details>
Чтобы получить смс для регистрации в опенаи:
https://onlinesim.io/v2/numbers
Локальные языковые модели
https://lmstudio.ai/
Olama
https://ollama.com https://ollama.com/library/ в шеле скачать\запустить модель:
ollama run llama3.1
или
ollama run phi3:14b
Пишутся в C:\Users\Misha\.ollama\models Список моделей:
ollama list
В comfyui загрузить ноду ComfyUI Ollama и pythongosssss/ComfyUI-Custom-Scripts Ollama Generate Generate a text to image promt about a black dog in anime style. Dont use quotes. Print only promt. Add as many details as possible to describe the subject itself. Ollama Generate Advance You are an expert text to image engineer. Generate prompt for the subject provided. Do it in concise and very detailed way. Use specific keywords to describe photo angles, atmosphere etc. Do not show promt in quotes. Print only promt. Add as many details as possible to describe the subject itself. Promt in english. Show Text Чтобы вставить в clip: ПКМ — Convert viget to input Описание по загруженной картинке: в шеле — ollama run llava Load Image присоединить к Ollama vision (describe the image) Чтобы запустить на другой порт: сделать новую переменную среды OLLAMA_HOST=127.0.0.1:11435 По умолчанию на 11434 Установки для хорошего промта Text-to-Image:
You are an expert text to image engineer. Generate prompt for the subject provided.
Do it in concise and very detailed way. Use specific keywords to describe photo angles, atmosphere etc.
Do not show promt in quotes. Print only promt.
Add as many details as possible to describe the subject itself. Promt in english.
Prioritize Clarity and Specificity:
Always focus on creating prompts that are clear and specific. Avoid vague or ambiguous language.
Describe the key elements of the image, including the main subjects, their attributes, and their positions.
Incorporate Key Details and Attributes:
Include important details about color, size, texture, and positioning of objects or subjects.
Ensure the prompt paints a vivid picture, allowing the model to generate precise visual representations.
Provide Context and Background:
Set the scene by describing the environment, time of day, and any relevant background elements.
Convey the mood or atmosphere if it is important to the image.
Define Style and Aesthetic Clearly:
If a specific style, artistic movement, or mood is desired, clearly articulate it in the prompt.
Mention any specific lighting, colors, or artistic techniques that should influence the image.
Maintain Simplicity Where Possible:
Balance detail with simplicity to avoid overcomplicating the prompt.
Focus on the most critical aspects that define the image, ensuring the prompt is digestible and straightforward.
Use Consistent Terminology:
Maintain consistency in language to avoid confusing the model.
Stick to the same terms for specific elements throughout the prompt to ensure coherence.
Iterative Refinement and Improvement:
Always review generated images and refine prompts iteratively.
Use feedback from previous outputs to improve prompt quality in future iterations.
Качаем квантованую модель: https://huggingface.co/HauhauCS/Qwen3.5-35B-A3B-Uncensored-HauhauCS-Aggressive/tree/main (Среднее Q4_K_M.gguf) Чтобы запустить в ollama: В одной папке с моделью создаём Modelfile
FROM ./Qwen3.5-35B-A3B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf
TEMPLATE {{ .Prompt }}
RENDERER qwen3.5
PARSER qwen3.5
PARAMETER presence_penalty 1.5
PARAMETER temperature 1
PARAMETER top_k 20
PARAMETER top_p 0.95
В этой папке cmd
ollama create qwen35-35b-q4km-uc -f Modelfile
Если надо удалить
ollama rm qwen35-35b-q4km-uc
Посмотреть файл модели уже на собранной модели
ollama show --modelfile qwen35-35b-q4km-uc
Посмотреть параметры модели
ollama show gemma4-31b-q4km-uc
Посмотреть какие модели загружены в память
ollama ps
Gemini api
https://aistudio.google.com/apikey
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent" \
-H 'Content-Type: application/json' \
-H 'X-goog-api-key: GEMINI_API_KEY' \
-X POST \
-d '{
"contents": [
{
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
]
}'
Cursor
Если ошибка: his model provider doesn't serve your region. Visit https://docs.cursor.com/account/regions for more information. В настройках поставить сеть HTTP/1.1 (работает с VPN)
Реализация: Сначала пишем то что хотим в режиме Plan
Lmstudio
https://lmstudio.ai/ Поставить длину контекста средним - 32768
llama.cpp
Для модели: https://huggingface.co/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/tree/main Запуск сервера: powershell -ExecutionPolicy Bypass -File D:\llama.ccp\start_qwen36_mtp.ps1
$Root = Split-Path -Parent $MyInvocation.MyCommand.Path
$Server = Join-Path $Root 'bin\llama-server.exe'
$Model = Join-Path $Root 'models\Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf'
$OutLog = Join-Path $Root 'qwen36-mtp-server.log'
$ErrLog = Join-Path $Root 'qwen36-mtp-server.err.log'
$LanIps = Get-NetIPAddress -AddressFamily IPv4 -ErrorAction SilentlyContinue |
Where-Object {
$_.IPAddress -notlike '127.*' -and
$_.IPAddress -notlike '169.254.*' -and
$_.PrefixOrigin -ne 'WellKnown'
} |
Select-Object -ExpandProperty IPAddress
$existing = Get-Process -Name 'llama-server' -ErrorAction SilentlyContinue |
Where-Object { $_.Path -eq $Server }
if ($existing) {
Write-Host "llama-server is already running on this machine."
Write-Host "Open http://127.0.0.1:8080"
foreach ($ip in $LanIps) {
Write-Host "LAN http://$($ip):8080"
}
return
}
$args = @(
'-m', $Model,
'--host', '0.0.0.0',
'--port', '8080',
'-ngl', '99',
'-c', '262144',
'-fa', 'on',
'-np', '1',
'--spec-type', 'draft-mtp',
'--spec-draft-n-max', '6',
'--jinja',
'--reasoning', 'off',
'--no-warmup'
)
$process = Start-Process `
-FilePath $Server `
-ArgumentList $args `
-WorkingDirectory $Root `
-RedirectStandardOutput $OutLog `
-RedirectStandardError $ErrLog `
-WindowStyle Hidden `
-PassThru
Write-Host "Started llama-server with PID $($process.Id)."
Write-Host "Open http://127.0.0.1:8080"
foreach ($ip in $LanIps) {
Write-Host "LAN http://$($ip):8080"
}
Write-Host "Logs:"
Write-Host $OutLog
Write-Host $ErrLog
Остановка сервера: powershell -ExecutionPolicy Bypass -File D:\llama.ccp\stop_qwen36_mtp.ps1
$Root = Split-Path -Parent $MyInvocation.MyCommand.Path
$Server = Join-Path $Root 'bin\llama-server.exe'
$processes = Get-Process -Name 'llama-server' -ErrorAction SilentlyContinue |
Where-Object { $_.Path -eq $Server }
if (-not $processes) {
Write-Host "No matching llama-server process is running."
return
}
$processes | Stop-Process -Force
Write-Host "Stopped llama-server."
После запуска сервер доступен локально: ```text http://127.0.0.1:8080 ``` И в локальной сети: ```text http://IP_КОМПЬЮТЕРА:8080 ```
Бери с официальных GitHub Releases проекта llama.cpp. llama-bXXXX-bin-win-cuda-13.1-x64.zip cudart-llama-bin-win-cuda-13.1-x64.zip Первый архив содержит llama-server.exe, llama-cli.exe и остальные exe. Второй архив содержит CUDA DLL, например cublas64_13.dll, cublasLt64_13.dll, cudart64_13.dll. Распакуй оба архива в одну папку: D:\llama.ccp\bin Потом проверь: D:\llama.ccp\bin\llama-server.exe --version D:\llama.ccp\bin\llama-cli.exe --list-devices Если --list-devices видит CUDA видеокарту, сборка подходит. В папке: ```text D:\llama.ccp\bin ``` должна лежать CUDA сборка llama.cpp. У нас использовалась версия: ```text llama.cpp version 9219 built with Clang 19.1.5 for Windows x86_64 ``` Важные файлы в `bin`: ```text llama-server.exe llama-cli.exe llama.dll llama-common.dll ggml.dll ggml-base.dll ggml-cuda.dll cublas64_13.dll cublasLt64_13.dll cudart64_13.dll ``` Если копируешь настройку на новый компьютер, проще всего перенести всю папку `D:\llama.ccp\bin` целиком. Проверка версии: ```powershell D:\llama.ccp\bin\llama-server.exe --version ``` Если появляется ошибка с кодом `3221225786`, чаще всего не хватает DLL или не подходит сборка. Проверь, что папка `bin` скопирована целиком. Ещё проверь свежий NVIDIA Driver.
Модель лежит тут: ```text D:\llama.ccp\models\Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf ``` Источник: ```text https://huggingface.co/unsloth/Qwen3.6-35B-A3B-MTP-GGUF ``` Нужный файл: ```text Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf ```
Важно. Это MTP модель. Её надо запускать не как обычный GGUF. Для llama.cpp нужны параметры: ```text --spec-type draft-mtp --spec-draft-n-max 6 ``` Без них модель может запускаться неправильно или работать без MTP ускорения. Что значат параметры запуска: ```text -m ``` Путь к GGUF модели. ```text --host 0.0.0.0 ``` Открывает сервер не только для самого компьютера, но и для локальной сети. ```text --port 8080 ``` Порт сервера. ```text -ngl 99 ``` Отправляет слои модели на GPU. ```text -c 262144 ``` Размер контекстного окна. У нас модель и OpenClaw были настроены на `262144`. Если не хватает VRAM, снизь до: ```text 65536 ``` или: ```text 32768 ``` ```text -fa on ``` Включает flash attention. ```text -np 1 ``` Один параллельный слот. Для личного общения это проще и экономнее по VRAM. ```text --spec-type draft-mtp --spec-draft-n-max 6 ``` Включает MTP режим для этой модели. ```text --jinja ``` Включает Jinja chat template. ```text --reasoning off ``` Отключает reasoning режим в llama.cpp. ```text --no-warmup ``` Не делает прогрев при старте.
Комментарии
Комментариев пока нет.