Albert Villanova del Moral

albertvillanova

AI & ML interests

ML Engineer @ Hugging Face: Evaluations (Science)

Recent Activity

posted an update 4 days ago
🚀 New smolagents update: Safer Local Python Execution! 🦾🐍 With the latest release, we've added security checks to the local Python interpreter: every evaluation is now analyzed for dangerous builtins, modules, and functions. 🔒 Here's why this matters & what you need to know! 🧵👇 1️⃣ Why is local execution risky? ⚠️ AI agents that run arbitrary Python code can unintentionally (or maliciously) access system files, run unsafe commands, or exfiltrate data. 2️⃣ New Safety Layer in smolagents 🛡️ We now inspect every return value during execution: ✅ Allowed: Safe built-in types (e.g., numbers, strings, lists) ⛔ Blocked: Dangerous functions/modules (e.g., os.system, subprocess, exec, shutil) 3️⃣ Immediate Benefits 💡 - Prevent agents from accessing unsafe builtins - Block unauthorized file or network access - Reduce accidental security vulnerabilities 4️⃣ Security Disclaimer ⚠️ 🚨 Despite these improvements, local Python execution is NEVER 100% safe. 🚨 If you need true isolation, use a remote sandboxed executor like Docker or E2B. 5️⃣ The Best Practice: Use Sandboxed Execution 🔐 For production-grade AI agents, we strongly recommend running code in a Docker or E2B sandbox to ensure complete isolation. 6️⃣ Upgrade Now & Stay Safe! 🚀 Check out the latest smolagents release and start building safer AI agents today. 🔗 https://github.com/huggingface/smolagents What security measures do you take when running AI-generated code? Let’s discuss! 👇 #AI #smolagents #Python #Security
posted an update 5 days ago
🚀 Big news for AI agents! With the latest release of smolagents, you can now securely execute Python code in sandboxed Docker or E2B environments. 🦾🔒 Here's why this is a game-changer for agent-based systems: 🧵👇 1️⃣ Security First 🔐 Running AI agents in unrestricted Python environments is risky! With sandboxing, your agents are isolated, preventing unintended file access, network abuse, or system modifications. 2️⃣ Deterministic & Reproducible Runs 📦 By running agents in containerized environments, you ensure that every execution happens in a controlled and predictable setting—no more environment mismatches or dependency issues! 3️⃣ Resource Control & Limits 🚦 Docker and E2B allow you to enforce CPU, memory, and execution time limits, so rogue or inefficient agents don’t spiral out of control. 4️⃣ Safer Code Execution in Production 🏭 Deploy AI agents confidently, knowing that any generated code runs in an ephemeral, isolated environment, protecting your host machine and infrastructure. 5️⃣ Easy to Integrate 🛠️ With smolagents, you can simply configure your agent to use Docker or E2B as its execution backend—no need for complex security setups! 6️⃣ Perfect for Autonomous AI Agents 🤖 If your AI agents generate and execute code dynamically, this is a must-have to avoid security pitfalls while enabling advanced automation. ⚡ Get started now: https://github.com/huggingface/smolagents What will you build with smolagents? Let us know! 🚀💡
updated a Space 19 days ago
smolagents-tools/translation
View all activity

Organizations

Hugging Face's profile picture Language Technology Research Group at the University of Helsinki's profile picture AI4Bharat's profile picture WMT: Workshop on Statistical Machine Translation's profile picture BigScience Workshop's profile picture Neuropark's profile picture DAIR.AI's profile picture Hugging Face Internal Testing Organization's profile picture superb's profile picture OSCAR's profile picture GEM benchmark's profile picture Tmp Test's profile picture BigScience Catalogue Data's profile picture Wikimedia's profile picture Col·lectivaT's profile picture tmp avm 1's profile picture Softcatalà's profile picture PubMed Central's profile picture Speech Recognition Community Event Version 2's profile picture BIG-bench's profile picture OpenSLR's profile picture BigScience Biomedical Datasets's profile picture BigScience Data's profile picture The UIT Natural Language Processing Group's profile picture I Hackathon Somos NLP: PLN en Español's profile picture Evaluation datasets's profile picture WebNLG's profile picture SomosNLP's profile picture Data's profile picture Datasets Maintainers's profile picture Open-Source AI Meetup's profile picture EuroPython 2022's profile picture FEVER's profile picture BigLAM: BigScience Libraries, Archives and Museums's profile picture BigCode's profile picture Hugging Face H4's profile picture Center for AI Safety's profile picture Hugging Face OSS Metrics's profile picture BigBang's profile picture OPUS's profile picture Aiinnova's profile picture Research Computing Center of Lomonosov Moscow State University's profile picture Open LLM Leaderboard's profile picture University of Edinburgh - Institute for Language, Cognition and Computation's profile picture EdinburghNLP - Natural Language Processing Group at the University of Edinburgh's profile picture Demo leaderboard with an integrated backend's profile picture Datasets examples's profile picture La Leaderboard's profile picture Paris AI Running Club's profile picture HuggingFaceEval's profile picture Defunct Datasets's profile picture Legacy Datasets's profile picture Department of Cognitive Science @ JHU's profile picture Google Research Datasets's profile picture Statistical and Neural Machine Translation's profile picture TruthfulQA's profile picture Machine Reading for Question Answering Workshop's profile picture ArXiv Community's profile picture ADE Benchmark Corpus's profile picture Centre for Text Technology - Humanities - NWU's profile picture Software Evolution and Architecture Lab's profile picture Abuelkhair Corpus's profile picture halabi2016's profile picture achrafothman's profile picture Community Datasets's profile picture BnL Open Data's profile picture ParlAI's profile picture bookcorpus's profile picture dataset-org's profile picture china-ai-law-challenge's profile picture Clinc: Conversational AI Technology's profile picture CMU Festvox Project's profile picture code-search-net's profile picture conceptnet5's profile picture ontonotes's profile picture Consumer Financial Protection Bureau's profile picture convai-challenge's profile picture UCSD-AI4H's profile picture li2017dailydialog's profile picture corona-tweet's profile picture Ixa - HiTZ's profile picture SemEval's profile picture emotone-ar-cicling2017's profile picture Large Text Compression Benchmark's profile picture esnli's profile picture Natural Language Processing Group - Athens University of Economics and Business's profile picture factckbr's profile picture zalando-datasets's profile picture Language Technology Group, TU Darmstadt) 's profile picture GermanEval's profile picture dki-lab's profile picture Linguateca's profile picture Project Ben-Yehuda - פרויקט בן-יהודה's profile picture OMILab, The Open University of Israel's profile picture dravidianlangtech's profile picture hotpotqa's profile picture hover-nlp's profile picture GRIT ID's profile picture kmi-linguistics's profile picture Large Scale Visual Recognition Challenge's profile picture jnlpba's profile picture Korea Maritime and Ocean University's profile picture SpellOnYou's profile picture lince-benchmark's profile picture PKU-TANGENT's profile picture billion-word-benchmark's profile picture Shanasai LLC's profile picture WHUIR's profile picture QAngaroo's profile picture eraser-benchmark's profile picture Universidad de Sevilla - Departamento de Lenguajes y Sistemas Informáticos's profile picture National Center for Sign Language and Gesture Resources's profile picture Read The Web - Carnegie Mellon University's profile picture Maluuba's profile picture Narodowego Korpusu Języka Polskiego's profile picture Iowa State University's profile picture ParaCrawl's profile picture ParaPat's profile picture quora-competitions's profile picture Center for SuperIntelligence's profile picture cornell-movie-review-data's profile picture scan-tasks's profile picture hirupert's profile picture sonos-nlu-benchmark's profile picture SNOW - Natural Language Processing Laboratory, Nagaoka University of Technology's profile picture boschresearch's profile picture KorQuAD's profile picture LSDSem's profile picture ufldl-stanford's profile picture uestc-swahili's profile picture Tokyo Metropolitan University Natural Language Processing Group's profile picture Turkic Interlingua - TIL's profile picture Arabic Language Technologies - Qatar Computing Research Institute's profile picture Universal Morphology's profile picture Centre for Speech Technology Research - University of Edinburgh's profile picture AILAB-VNUHCM's profile picture webnlg-challenge's profile picture HDLTex's profile picture Building Educational Applications 2019 Shared Task's profile picture Center for Language Technologies - De La Salle University's profile picture Wongnai's profile picture nfL6's profile picture Electricity Transformer Dataset (ETDataset)'s profile picture Department of Computer Science and Technology (University of Cambridge)'s profile picture cornell_movie_dialog's profile picture Jeopardy Datasets's profile picture hate-speech-filipino's profile picture hate-speech-portuguese's profile picture peoples-daily-ner's profile picture ptb-text-only's profile picture senti-lex's profile picture timit-asr's profile picture tweets-hate-speech-detection's profile picture ubuntu-dialogs-corpus's profile picture universal-dependencies's profile picture open-llm-leaderboard-react's profile picture Prompt Leaderboard's profile picture smolagents's profile picture smolagents Tools's profile picture

Posts 14

view post
Post
3420
🚀 New smolagents update: Safer Local Python Execution! 🦾🐍

With the latest release, we've added security checks to the local Python interpreter: every evaluation is now analyzed for dangerous builtins, modules, and functions. 🔒

Here's why this matters & what you need to know! 🧵👇

1️⃣ Why is local execution risky? ⚠️
AI agents that run arbitrary Python code can unintentionally (or maliciously) access system files, run unsafe commands, or exfiltrate data.

2️⃣ New Safety Layer in smolagents 🛡️
We now inspect every return value during execution:
✅ Allowed: Safe built-in types (e.g., numbers, strings, lists)
⛔ Blocked: Dangerous functions/modules (e.g., os.system, subprocess, exec, shutil)

3️⃣ Immediate Benefits 💡
- Prevent agents from accessing unsafe builtins
- Block unauthorized file or network access
- Reduce accidental security vulnerabilities

4️⃣ Security Disclaimer ⚠️
🚨 Despite these improvements, local Python execution is NEVER 100% safe. 🚨
If you need true isolation, use a remote sandboxed executor like Docker or E2B.

5️⃣ The Best Practice: Use Sandboxed Execution 🔐
For production-grade AI agents, we strongly recommend running code in a Docker or E2B sandbox to ensure complete isolation.

6️⃣ Upgrade Now & Stay Safe! 🚀
Check out the latest smolagents release and start building safer AI agents today.

🔗 https://github.com/huggingface/smolagents

What security measures do you take when running AI-generated code? Let’s discuss! 👇

#AI #smolagents #Python #Security

Articles 3

Article
1.15k

Open-source DeepResearch – Freeing our search agents