mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.2K
active users

#python

439 posts329 participants51 posts today
Simon Forman<p>A couple of <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Quine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Quine</span></a> one-liners.</p><p>s='s=%r;print(s%%s,)';print(s%s,)</p><p>(lambda s: s%s)('(lambda s: s%%s)(%r)')</p><p>E.g.:</p><p>&gt;&gt;&gt; s = "(lambda s: s%s)('(lambda s: s%%s)(%r)')"<br>&gt;&gt;&gt; eval(s) == s<br>True</p>
Hacker News 50<p>Why MIT Switched from Scheme to Python (2009)</p><p>Link: <a href="https://www.wisdomandwonder.com/link/2110/why-mit-switched-from-scheme-to-python" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">wisdomandwonder.com/link/2110/</span><span class="invisible">why-mit-switched-from-scheme-to-python</span></a><br>Discussion: <a href="https://news.ycombinator.com/item?id=44685119" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.ycombinator.com/item?id=4</span><span class="invisible">4685119</span></a></p><p><a href="https://social.lansky.name/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
pyOpenSci<p>Two weeks out from <a href="https://fosstodon.org/tags/SciPy2025" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SciPy2025</span></a> and we’re still buzzing ⚡</p><p>🛠️ Our packaging workshop with <a href="https://fosstodon.org/tags/Hatch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hatch</span></a> + <a href="https://fosstodon.org/tags/UV" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UV</span></a> made best practices feel doable<br>💬 60+ joined our “Packaging Pain Points” BoF—real talk, real momentum<br>🚀 30+ PRs opened in one day—many from first-timers!<br>🎙️ Lightning talks, <a href="https://fosstodon.org/tags/Pixi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pixi</span></a> demos, and a SciPy Song shoutout!</p><p>More soon—including our Aug 7 event on peer review w/ Stanford <a href="https://fosstodon.org/tags/OSPO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OSPO</span></a>.</p><p>✨ Read more: <a href="https://www.pyopensci.org/blog/pyopensci-at-scipy-2025" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyopensci.org/blog/pyopensci-a</span><span class="invisible">t-scipy-2025</span></a></p><p><a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://fosstodon.org/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> <a href="https://fosstodon.org/tags/OpenScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenScience</span></a> <a href="https://fosstodon.org/tags/ResearchSoftware" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ResearchSoftware</span></a> <a href="https://fosstodon.org/tags/CommunityDriven" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommunityDriven</span></a></p>
mgorny-nyan (on) :autism:🙀🚂🐧<p>Jak ktoś chce spróbować rozkminić ciekawy problem:</p><p><a href="https://github.com/nedbat/coveragepy/issues/2008" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/nedbat/coveragepy/i</span><span class="invisible">ssues/2008</span></a></p><p>Z jakiegoś powodu moduł subprocess w Pythonie subprocess zwraca status wyjścia procesu, który oberwał sygnałem, jako (128 + kod) autorom (podobnie jak `$?` w bashu), a mi jako -kod (zgodnie z dokumentacją).</p><p><a href="https://pol.social/tags/Gentoo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gentoo</span></a> <a href="https://pol.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://pol.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a></p>
mgorny-nyan (he) :autism:🙀🚂🐧<p>If someone wants to investigate a curious issue:</p><p><a href="https://github.com/nedbat/coveragepy/issues/2008" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/nedbat/coveragepy/i</span><span class="invisible">ssues/2008</span></a></p><p>Long story short, for some reason <a href="https://social.treehouse.systems/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> 's subprocess module reports the exit status for a signaled process as (128 + signal) for upstream (similarly to how bash's `$?` works), but -signal (as documented) for me.</p><p><a href="https://social.treehouse.systems/tags/Gentoo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gentoo</span></a> <a href="https://social.treehouse.systems/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a></p>
PyLadiesCon<p>🚀 The <a href="https://fosstodon.org/tags/PyLadiesCon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyLadiesCon</span></a> 2025 Call for Sponsors is OPEN! 💜🐍<br>Support a global, free &amp; inclusive Python conference that amplifies underrepresented voices in tech 🌍✨</p><p>📅 Dec 5–7, 2025</p><p>📝 Read more: 👇<br><a href="https://conference.pyladies.com/blog/2025-call-for-sponsors" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">conference.pyladies.com/blog/2</span><span class="invisible">025-call-for-sponsors</span></a></p><p><a href="https://fosstodon.org/tags/PyLadies" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyLadies</span></a> <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://fosstodon.org/tags/Sponsorship" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Sponsorship</span></a></p>
2rZiKKbOU3nTafniR2qMMSE0gwZFoundations of Cyber Thinking: Python, GitHub, and Peer Power Reflections from Day 4 of NYU’s CS4CS Cybersecurity Program Continue reading on Medium » <br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/python" target="_blank">#python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/peer-learning" target="_blank">#peer-learning</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/stem-education" target="_blank">#stem-education</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/google-colab" target="_blank">#google-colab</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/github" target="_blank">#github</a><br><br><a href="https://gitikababbar.medium.com/foundations-of-cyber-thinking-python-github-and-peer-power-b3a5a4a9f768?source=rss------github-5" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=Kh4jHVajkAfZiAgpHzHNqVUKqcS&amp;interestId=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Match</a>
John Beers<p>Version 0.11 of my <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> utility <a href="https://mastodon.social/tags/image2sound" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>image2sound</span></a> is out!</p><p>A major new feature of this release is the "composition engine" that generates phrases, sections, and movements to create more musical output. No AI, just code. Lots of other backend improvements and bug fixes, too</p><p><a href="https://codeberg.org/jaerrib/image2sound/releases/tag/0.11" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/jaerrib/image2sou</span><span class="invisible">nd/releases/tag/0.11</span></a></p>
PyOhio<p>Meet our <a href="https://fosstodon.org/tags/PyOhio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyOhio</span></a> 2025 Speaker: Andrew Kubera 🥳<br><a href="https://www.pyohio.org/2025/program/speakers/andrew-kubera" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyohio.org/2025/program/speake</span><span class="invisible">rs/andrew-kubera</span></a></p><p>Andrew Kubera is giving the talk:</p><p>Write Apps for Your TV with Kodi and Python<br><a href="https://www.pyohio.org/2025/program/talks/write-apps-for-your-tv-with-kodi-and-python" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyohio.org/2025/program/talks/</span><span class="invisible">write-apps-for-your-tv-with-kodi-and-python</span></a></p><p>Which explores the development pipeline for writing custom TV applications and plugins for the open-source media player, Kodi, all able to run on your set-top-box.</p><p>Join us this weekend to listen in, and learn more about the <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> world!</p><p><a href="https://fosstodon.org/tags/PyOhioTalks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyOhioTalks</span></a></p>
PostgreSQLСегментация клиентов методом K-Means на стороне БД Привет, Хабр! Сегодня мы рассмотрим, как заставить PostgreSQL сам...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/python" target="_blank">#python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/sql" target="_blank">#sql</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/кластеризация" target="_blank">#кластеризация</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/postgresql" target="_blank">#postgresql</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/нормализация" target="_blank">#нормализация</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/данных" target="_blank">#данных</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/хранимая" target="_blank">#хранимая</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/процедура" target="_blank">#процедура</a><br><br><a href="https://habr.com/ru/companies/otus/articles/930506/?utm_source=habrahabr&amp;utm_medium=rss&amp;utm_campaign=930506" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=PostgreSQL" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=E5cZC159Xf61SPSwDlXfWI8Cd8K&amp;interestId=PostgreSQL" rel="nofollow noopener" target="_blank">Match</a>
Habr<p>Сегментация клиентов методом K-Means на стороне БД</p><p>Привет, Хабр! Сегодня мы рассмотрим, как заставить PostgreSQL самостоятельно крутить K-Means для сегментации клиентов, не вытаскивая данные наружу. Пройдемся по циклу: нормализуем фичи в materialized view, напишем функцию PL/PythonU, которая дергает scikit-learn, сохраняем cluster_id обратно в таблицу и закрываем гештальт отчётом «доход по кластеру» чистым SQL.</p><p><a href="https://habr.com/ru/companies/otus/articles/930506/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/otus/art</span><span class="invisible">icles/930506/</span></a></p><p><a href="https://zhub.link/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://zhub.link/tags/sql" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sql</span></a> <a href="https://zhub.link/tags/%D0%BA%D0%BB%D0%B0%D1%81%D1%82%D0%B5%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>кластеризация</span></a> <a href="https://zhub.link/tags/postgresql" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>postgresql</span></a> <a href="https://zhub.link/tags/%D0%BD%D0%BE%D1%80%D0%BC%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F_%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>нормализация_данных</span></a> <a href="https://zhub.link/tags/%D1%85%D1%80%D0%B0%D0%BD%D0%B8%D0%BC%D0%B0%D1%8F_%D0%BF%D1%80%D0%BE%D1%86%D0%B5%D0%B4%D1%83%D1%80%D0%B0" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>хранимая_процедура</span></a></p>
Jason Weatherly<p>Got the Roll Dice dialog box themed up about as nice as its going to get. Still might make it a touch smaller though.</p><p><a href="https://social.linux.pizza/tags/pathfinder2e" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pathfinder2e</span></a> <a href="https://social.linux.pizza/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://social.linux.pizza/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://social.linux.pizza/tags/dice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dice</span></a></p>
LLMsЗнает ли LLM то, что знаешь ты? Представьте, что&nbsp;у&nbsp;вас есть друг, который идеально завершает ваши мысли. Вы гов...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/llm" target="_blank">#llm</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/nlp" target="_blank">#nlp</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/машинное" target="_blank">#машинное</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/обучение" target="_blank">#обучение</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/python" target="_blank">#python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/итмо" target="_blank">#итмо</a><br><br><a href="https://habr.com/ru/articles/931060/?utm_source=habrahabr&amp;utm_medium=rss&amp;utm_campaign=931060" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=LLMs" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=XlQD5lbgijjklfEqGJHYaoq8Cno&amp;interestId=LLMs" rel="nofollow noopener" target="_blank">Match</a>
lxsameer<p>I owe a lot to a few programming languages that taught me how to design a language, both from an engineering standpoint and computer science. </p><p><a href="https://mastodon.social/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a> &amp; <a href="https://mastodon.social/tags/haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>haskell</span></a> for what a good programming language might look like. </p><p><a href="https://mastodon.social/tags/Agda" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Agda</span></a>, <a href="https://mastodon.social/tags/Idris2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Idris2</span></a>, <a href="https://mastodon.social/tags/lean4" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lean4</span></a> to show me how useful dependent types are.</p><p><a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++, to teach me what to avoid</p><p><a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a>, <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> to be such giant examples of shitty languages and give me hope that I can do better. 😂</p>
PyOhio<p>Meet our <a href="https://fosstodon.org/tags/PyOhio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyOhio</span></a> 2025 Speaker: Lazouich Ford 🎉<br><a href="https://www.pyohio.org/2025/program/speakers/lazouich-ford" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyohio.org/2025/program/speake</span><span class="invisible">rs/lazouich-ford</span></a></p><p>Lazouich Ford is giving the talk:</p><p>Wildfires!<br><a href="https://www.pyohio.org/2025/program/talks/wildfires" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyohio.org/2025/program/talks/</span><span class="invisible">wildfires</span></a></p><p>Exploring how to analyze and visualize wildfire data leveraging Python and GeoPandas to clean and use datasets to understand fire patterns.</p><p>Join us this weekend to listen in, and learn more about the <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> world!</p><p><a href="https://fosstodon.org/tags/PyOhioTalks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyOhioTalks</span></a></p>
Raspberry-PiPython App Development Guide in 2025 Explore the Python app development guide 2025. Learn about top frameworks like Django, Flask, and Kivy with best practices to build an app. Python is the third ...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Python" target="_blank">#Python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Python" target="_blank">#Python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/App" target="_blank">#App</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Development" target="_blank">#Development</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Python" target="_blank">#Python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Application" target="_blank">#Application</a><br><br><a href="https://www.ongraph.com/definitive-guide-to-python-app-development/" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=Raspberry-Pi" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=XfAwgKa2x80sGvPsSwJucq7BqGu&amp;interestId=Raspberry-Pi" rel="nofollow noopener" target="_blank">Match</a>
Thomas Svensson 🖖<p><span class="h-card" translate="no"><a href="https://toots.dgplug.org/@kushal" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kushal</span></a></span> </p><p>This week I learned about how the uuid and secrets modules can be used for the idea I'm working on 🥳 </p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> :python:</p>
PostgreSQLIntroduction to PgVector PgVector is a PostgreSQL extension that adds support for vector data types, enabling efficient storage, indexing, and similarity search on high-dimensional vectors. Let us ...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Python" target="_blank">#Python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Embeddings" target="_blank">#Embeddings</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/PGVector" target="_blank">#PGVector</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/PostgreSQL" target="_blank">#PostgreSQL</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Vector" target="_blank">#Vector</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Vector" target="_blank">#Vector</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Embeddings" target="_blank">#Embeddings</a><br><br><a href="https://www.javacodegeeks.com/introduction-to-pgvector.html" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=PostgreSQL" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=8URmYoYfeqDytFXQpl3mBkoBlpY&amp;interestId=PostgreSQL" rel="nofollow noopener" target="_blank">Match</a>
LLMsЗнает ли LLM то, что знаешь ты? Как понять, "помнит" ли модель ваш текст? Представьте, что у вас есть друг, ко...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/llm" target="_blank">#llm</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/nlp" target="_blank">#nlp</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/python" target="_blank">#python</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/итмо" target="_blank">#итмо</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/машинное" target="_blank">#машинное</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/обучение" target="_blank">#обучение</a><br><br><a href="https://www.pvsm.ru/python/426191" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=LLMs" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=000a48eVrDbqGFLvlOi6p9FNrge&amp;interestId=LLMs" rel="nofollow noopener" target="_blank">Match</a>
Habr<p>Знает ли LLM то, что знаешь ты?</p><p>Представьте, что у вас есть друг, который идеально завершает ваши мысли. Вы говорите: «В детстве я любил...», а он тут же продолжает: «...играть в футбол и смотреть “Смешариков”». Совпадение? Или он вас слишком хорошо знает? Теперь представьте, что этот “друг” — языковая модель вроде GPT-4, обученная на десятках терабайт текста. Вы даёте ей фразу — и она точно угадывает продолжение. Вопрос: она действительно видела это раньше или просто хорошо обучена угадывать? Вот тут на сцену выходит Membership Inference Attack (MIA) — метод, который позволяет выяснить, был ли конкретный текст в тренировочном датасете модели. По сути, это способ заставить LLM проговориться: «Да, я это читала. Но никому не говори». Раньше такие атаки были возможны только при доступе к логитам — вероятностям слов, которые модель "придумывает" на выходе. Но популярные модели вроде ChatGPT или Claude таких данных не раскрывают — вы получаете только текст. Можно ли вытащить приватные данные, видя только текст, без логитов и без доступа к модели? Спойлер: да, можно. И способ называется PETAL .</p><p><a href="https://habr.com/ru/articles/931060/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/931060/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/llm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>llm</span></a> <a href="https://zhub.link/tags/nlp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nlp</span></a> <a href="https://zhub.link/tags/%D0%BC%D0%B0%D1%88%D0%B8%D0%BD%D0%BD%D0%BE%D0%B5_%D0%BE%D0%B1%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>машинное_обучение</span></a> <a href="https://zhub.link/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://zhub.link/tags/%D0%B8%D1%82%D0%BC%D0%BE" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>итмо</span></a></p>