TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

Пронајдени 4 слични објави

Пребарај: #globalai

当前筛选 #globalai清除筛选
AI & Law

@ai_and_law · Post #145 · 23.10.2023 г., 07:04

UK to Host Inaugural Global AI Safety Summit at Bletchley Park Hello, AI&Law community! The UK Government unveils the agenda for the first-ever global AI Safety Summit, set to take place at the historic Bletchley Park. The summit will unite digital ministers, AI companies, civil society representatives, and independent experts in crucial discussions. The spotlight is on frontier AI, the most advanced AI models, with an emphasis on responsible development to mitigate potential risks. Deliberations will address emerging AI dangers and the transformative opportunities AI offers, particularly in education and international research collaboration. Technology Secretary Michelle Donelan will lead the event, emphasizing the importance of safety and security in AI advancements. Topics will span frontier AI risks, national security threats, potential election interference, and addressing global inequalities. A major theme is international cooperation among policymakers, scientists, and researchers to manage risks and unlock AI's global potential. The summit aims to promote responsible AI development and deployment on a global scale, with the UK Government leading the way. #AISafety#UKGovernment#AIConference#GlobalAI#AIResponsibility

AI & Law

@ai_and_law · Post #74 · 03.08.2023 г., 07:04

Advancing Responsible AI: Insights from the American Chamber of Commerce Hello, AI community! Today, we bring you valuable insights from the American Chamber of Commerce to the European Union's position paper for the AI Act trilogue negotiations. Let's look into the facts and recommendationstons. 🔹 Defining AI: The Chamber encourages EU decision-makers to align the definition of AI with the OECD's definition. A clear and internationally accepted AI definition fosters multilateral coordination in AI policy. 🔹 Streamlining High-Risk Designation: The paper suggests narrowing the scope of high-risk designation to avoid vagueness. This focused approach ensures that AI technologies with genuine high-risk factors receive appropriate attention while minimizing unnecessary burdens on other AI systems. 🔹 Outcome-Oriented Flexibility: Chapter III requirements largely match current responsible AI practices. However, the Chamber emphasizes the importance of remaining flexible and outcome-oriented. 🔹 Obligations for Foundation Models and General Purpose AI: The paper calls for obligations tailored to foundation models and general-purpose AI. 🔹 Transparency in Artificially Generated Content: Transparency is key when it comes to artificially generated content. The Chamber advocates for measures that promote understanding and disclosure of AI-generated content to safeguard users from potential misinformation and manipulation. 🔹 Harmonized Enforcement and Flexible Standards: To create a robust AI landscape, harmonized enforcement and clear yet flexible standards are necessary. #ResponsibleAI#AIRegulation#AIAct#AITrilogue#TechPolicy#AICommunity#GlobalAI#AIStandards

AI & Law

@ai_and_law · Post #147 · 25.10.2023 г., 07:04

Proposed Chinese AI Safety Standards: A Closer Look Hey there, AI & Law community! On October 11, the National Information Security Standardization Technical Committee in China released a draft document outlining precise regulations for evaluating generative AI models. Unlike the often vague AI regulations, this document provides a clear blueprint for compliance. This standards proposal sets forth rigorous criteria for assessing AI data sources and their content. The document covers topics like training data diversity, moderation, and prohibited content. It emphasizes the need for diversified training corpora and the assessment of data quality. If more than 5% of data is "illegal and negative information," the corpus is flagged for future training. The proposal also suggests that AI companies employ moderators to enhance generated content quality, aligning with national policies and third-party complaints. This implies a potential expansion of the human-driven moderation and censorship workforce in the AI era. Companies are tasked with identifying hundreds of keywords for flagging unsafe or banned content, with separate categories for political and discriminative content. They must also generate more than 2,000 prompts, ensuring fewer than 10% of responses breach the rules. Interestingly, the document encourages subtler censorship measures, such as not refusing to answer sensitive prompts but allowing AI models to respond to specific, non-sensitive inquiries. It's crucial to clarify that these standards are not laws, and non-compliance doesn't result in penalties. However, proposals like these can significantly influence future regulations or work alongside them. The standards receive input from tech experts hired by companies, giving corporations like Huawei, Alibaba, and Tencent a say in shaping these regulations. Their influence could have far-reaching implications for the global AI industry and how AI technologies are regulated worldwide. #AISafety#AIRegulations#GenerativeAI#ContentModeration#ChineseTech#AIInfluence#GlobalAI

Venture Village Wall 🦄

@venturevillagewall · Post #3447 · 19.12.2024 г., 13:03

AI Boom Primarily Seen in USA Recent analysis indicates a surge in data center construction in the USA, forecasted to reach 4,750 in 2024, surpassing this year's record of 4,250. Data from Apollo suggests the US has more data centers than the next top nine countries combined, leading researchers to conclude a lack of AI expansion in other developed nations. However, the situation in China appears different, with reports of 230 million generative AI users and 130 new language models launched, representing 40% of the world total. The inconsistency raises questions about the global AI landscape. For further insights, read more in the full articles here: Sherwood Insight, Apollo Report, Russian Data Center Research, Reuters Article. #AI#DataCenters#USA#China#Investment#Tech#Statistics#GenerativeAI#MarketTrends#Apollo#Sherwood#Research#Economics#Infrastructure#DigitalTransformation#TechGrowth#LanguageModels#GlobalAI