7.09.2025 состоялся релизPithon 3.14!
На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками.
Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный.
Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0
Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает:
▫️ соберет релизный Python 3.14 в новый Docker-образ
▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter)
▫️ распечатает результаты
Тест очень простой, усложняйте сами)
Вот какие результаты у меня:
=== Running ThreadPoolExecutor GIL ON
TOTAL TIME: 45.48 seconds
=== Running ThreadPoolExecutor GIL OFF
TOTAL TIME: 6.14 seconds
=== Running basic Thread GIL ON
TOTAL TIME: 45.54 seconds
=== Running basic Thread GIL OFF
TOTAL TIME: 4.74 seconds
=== Running with Multi Interpreter
TOTAL TIME: 18.30 seconds
Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами.
Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵💫, нас учили не так!
Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL.
Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется.
Отдельно я затестил память и вот что вышло на 32 потока:
ThreadPoolExecutor GIL ON
305.228 MB
ThreadPoolExecutor GIL OFF
500.176 MB
basic Thread GIL ON
90.668 MB
basic Thread GIL OFF
472.444 MB
with Multi Interpreter
1267.788 MB
Пока не знаю как к этому относиться)
В целом - радует направление развития!
#release
🌍Innovatsion biznesda texnologik transfer mavzusida amaliy seminar
🎓 Respublikamizda tadbirkorlik subyektlari tomonidan innovatsion ishlanmalar, yangi texnologiyalar va nou-xaularni ishlab chiqarishga joriy etishni qo‘llab-quvvatlash maqsadida Biznes va tadbirkorlik oliy maktabi 2024-yil 5-6-noyabr kunlari “Innovatsion biznes va startaplarni rivojlantirishda texnologiyalar transferi” mavzusida ikki kunlik seminar tashkil etmoqda.
➡️ Seminardan maqsad innovatsion loyihalarni amalga oshirishda ilm-fan yutuqlari va innovatsion ishlanmalarga oid texnologik transferni keng qo‘llashning amaliy jihatlarini o‘rganishdan iborat.
💠 Tadbirda Koreyalikekspert va mahalliymutaxassislar tomonidan mavzuga oid taqdimot, ma’ruza hamda muhokamalar o‘tkaziladi.
🔹 Seminarda ishtirok etish uchun 2024-yil 4-noyabrga qadar ro‘yxatdan o‘tish lozim.
🔗Ro‘yxatdan o‘tish.
🔷 Ishtirokchilar soni cheklangan.
🔝 Sanasi: 5-6-noyabr
🔝 Vaqti: 09-30 – 13-00
📞 Telefon: +99871 239-03-27
🇬🇧Eng
🇷🇺Ru
#GraduateSchool#Healthtech#Startup#Evaluation
🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube
🌟Startup Evaluation: HealthTech Series 🌟
📣Biznes va tadbirkorlik oliy maktabi Toshkent tibbiyot akademiyasi bilan hamkorlikda sog‘liqni saqlash va tibbiy texnologiyalar sohasida dastlabki inkubatsiya bosqichidagi startap loyihalarni qo‘llab-quvvatlash va rivojlantirish bo‘yicha “Startup Evaluation: HealthTech Series” loyihasini amalga oshirmoqda.
💠Tadbirdan maqsad - sog‘liqni saqlash sohasida yosh startap tashabbuskorlari hamda biznes va ta’lim sohasidagi yetakchi ekspertlar o'rtasida samarali muloqotni tashkil etishdan iboratdir.
Tadbir yosh startap egalari uchun startap loyihasini rivojlantirishda qulay imkoniyat yaratadi.
➡️Tadbirda startaplarni quyidagilar kutmoqda:
🔘 o‘z biznes loyihalarini taqdimot qilish va ekspertlar bilan startaplarni amalgaoshirish bo‘yicha fikr almashish imkoniyati;
🔘 bizines sohasidagi yetakchi professor va ekspertlardan maslahatlar olish;
🟣 startap loyihalarnitakomillashtirish bo‘yicha navbatdagi qadamlarni muhokama qilish;
🟡 startaplarni kelgusida rivojlantirish bo‘yicha Oliy maktabining ko‘magiga tayanish.
🔍Ma’lumot uchun: “Startup Evaluation" loyihasi - bu Biznes va tadbirkorlik oliy maktabining startaplarni qo‘llab-quvvatlash platformasi bo‘lib, yosh startap tashabbuskorlarining startap loyihalarini qisqa muddatda amalga oshirish bo‘yicha o’zaro hamkorlikni nazarda tutadi.
🗓 Sana: 2024-yil 8-oktabr
🕖 Vaqt: 09:00-13:00.
📱 Telefon: +998712390327
📍 Joylashuv: Biznes va tadbirkorlik oliy maktabi (5-qavat)
🇬🇧Eng
🇷🇺Ru
#GraduateSchool#Healthtech#Startup#Evaluation
🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube
#python#agents#document_search#evaluation#guardrails#llms#optimization#prompts#rag#vector_stores
Ragbits is a tool that helps build and deploy GenAI applications quickly. It offers features like swapping between many language models, ensuring safe interactions with these models, and connecting to various data storage systems. Ragbits also includes tools for managing data and testing prompts, making it easier to develop reliable AI applications. This helps users create more accurate and efficient AI systems by integrating the latest data and reducing errors. Overall, Ragbits makes it faster and more efficient to develop and deploy AI applications.
https://github.com/deepsense-ai/ragbits
#typescript#ai#analytics#datasets#dspy#evaluation#gpt#llm#llmops#low_code#observability#openai#prompt_engineering
LangWatch helps you monitor, test, and improve AI applications by tracking performance, comparing different setups, and optimizing prompts automatically. It works with any AI tool or framework, keeps your data secure, and lets you collaborate with experts to fix issues quickly, making your AI more reliable and efficient.
https://github.com/langwatch/langwatch
#go#agent#agentic#ai#chatbot#chatbots#embeddings#evaluation#generative_ai#golang#knowledge_base#llm#multi_tenant#multimodel#ollama#openai#question_answering#rag#reranking#semantic_search#vector_search
WeKnora is a powerful tool that helps you understand and find answers in complex documents like PDFs and Word files. It uses advanced AI to read documents, understand what they mean, and answer your questions in a simple way. This tool is useful for businesses and researchers because it can quickly find information from many documents, making it easier to manage knowledge and make decisions. It also supports multiple languages and can be used privately, ensuring your data stays safe.
https://github.com/Tencent/WeKnora
#typescript#ci#ci_cd#cicd#evaluation#evaluation_framework#llm#llm_eval#llm_evaluation#llm_evaluation_framework#llmops#pentesting#prompt_engineering#prompt_testing#prompts#rag#red_teaming#testing#vulnerability_scanners
Promptfoo is a tool that helps developers test and improve AI applications using Large Language Models (LLMs). It allows you to **test prompts and models** automatically, **secure your apps** by finding vulnerabilities, and **compare different models** side-by-side. You can use it on your computer or integrate it into your development workflow. This tool helps you make sure your AI apps work well and are secure before you release them. It saves time and ensures quality by using data instead of guessing.
https://github.com/promptfoo/promptfoo