Purple Llama

在这里插入图片描述


一、关于 Purple Llama

Purple Llama 是一个伞式项目,随着时间的推移,它将汇集工具和评估,帮助社区用开放的生成人工智能模型负责任地构建。最初的版本将包括网络安全和输入/输出保护的工具和评估,但我们计划在不久的将来做出更多贡献。


为什么是紫色的?

借用一个 概念 : https://www.youtube.com/watch?v=ab_Fdp6FVDI

从 我们相信,要真正缓解网络安全领域的挑战 生成式AI呈现,我们需要同时采取进攻(红队)和防守 (蓝队)姿势。紫队,由红队和蓝队组成 责任,是一种评估和缓解的协作方法 潜在风险和同样的精神适用于生成性人工智能,因此我们的 对Purple Llama 的投资将是全面的。


许可证

Purple Llama 项目中的组件将获得许可,允许研究和商业使用。我们相信这是朝着实现社区协作和标准化生成性人工智能开发的信任和安全工具的开发和使用迈出的重要一步。更具体的评估和基准是根据麻省理工学院许可证获得许可的,而任何模型都使用Llama 2社区许可证。见下表:

组件类型组件许可证
发放/基准测试Cyber Security Eval(其他即将到来)MIT
模型Llama GuardLlama 2社区许可证
模型Llama Guard 2Llama 3社区许可证
保障Code Shield麻省理工学院

二、评估和基准


Cybersecurity


CyberSec Eval 1

我们认为CyberSec Eval v1是LLM的第一套全行业网络安全评估。这些基准基于行业指南和标准(例如CWE和MITRE ATT&CK),并与我们的安全主题专家合作构建。我们旨在提供工具,帮助解决白宫关于发展负责任人工智能的承诺 中概述的一些风险,包括:

  • 量化LLM网络安全风险的指标。
  • 评估不安全代码建议频率的工具。
  • 评估LLM的工具,使生成恶意代码或帮助实施网络攻击变得更加困难。

我们相信这些工具将减少LLM建议不安全的人工智能生成代码的频率,并降低它们对网络对手的帮助。我们的初步结果表明,LLM存在有意义的网络安全风险,包括推荐不安全的代码和遵守恶意请求。有关更多详细信息,请参阅我们的 Cybersec Eval paper


CyberSec Eval 2

CyberSec Eval 2 通过测量LLM滥用代码解释器的倾向、攻击性网络安全能力和对即时注入的敏感性来扩展其前身。你可以在这里阅读论文。

你也可以在这里 查看🤗排行榜。


三、系统级保障

正如我们在Llama 3中概述的那样 负责任使用指南,我们 建议检查和过滤LLM的所有输入和输出 根据适用于应用程序的内容指南。


Llama Guard

为了支持这一点,并赋予社区权力,我们发布了Llama Guard,这是一个公开可用的模型,它在常见的开放基准上具有竞争力,并为开发人员提供预训练模型来帮助抵御潜在的风险输出。作为我们对开放透明科学的持续承诺的一部分,我们还在Llama Guard论文中发布了我们的方法论和模型性能的扩展讨论。

我们很高兴分享一个更新的版本,元Llama Guard 2。Llama Guard 2进行了优化,以支持MLCommons新宣布的政策,将其覆盖范围扩大到更全面的开箱即用安全类别。

它还具有比Llama Guard 1更好的分类性能和改进的零射击和少射击适应性。

最终,我们的愿景是使开发人员能够自定义此模型以支持相关用例,并更容易采用最佳实践并改进开放生态系统。


Code Shield

Code Shield增加了对LLM生成的不安全代码的推理时间过滤的支持。Code Shield提供了减轻不安全代码建议风险、防止代码解释器滥用和安全命令执行的功能。CodeShield示例笔记本


四、入门

要开始并学习如何在Llama 模型中使用Purple Llama 组件, 请参阅 https://ai.meta.com/llama/get-started/ 的入门指南。 该指南提供了帮助您设置Llama 的信息和资源,包括 如何访问模型、托管操作信息和集成指南。此外, 您将找到补充材料以进一步帮助您,同时负责任地 用Llama 建造。该指南将更新为更多Purple Llama 组件 被释放。


2024-07-16(二)

### 安装 OpenSIPS 2.4.3 的详细步骤 #### 准备工作 为了确保顺利安装 OpenSIPS,在开始之前需确认系统已更新至最新状态。 ```bash sudo apt update && sudo apt upgrade -y ``` #### 安装依赖包 在编译安装 OpenSIPS 前,需要先安装一些必要的开发工具和库文件: ```bash sudo apt-essential libmysqlclient-dev libncurses5-dev git-core pkg-config autoconf automake bison flex openssl libssl-dev uuid-dev libtool zlib1g-dev linux-libc-dev gawk debhelper intltool sqlite3 libsqlite3-dev mariadb-client mariadb-server libmariadb-dev checkinstall curl wget vim net-tools iputils-ping dnsutils iptables lsof psmisc ntpdate whois traceroute tcpdump telnet sysstat htop iotop iftop jq ncdu strace dsniff ngrep socat cifs-utils nfs-common sshfs fuse-overlayfs podman-docker docker.io python3-pip python-is-python3 python3-setuptools python3-wheel python3-virtualenv python3-venv python3-psycopg2 postgresql postgresql-contrib redis-server rabbitmq-server memcached beanstalkd varnish nginx apache2 php-cli php-fpm php-mysql php-curl php-gd php-intl php-json php-mbstring php-opcache php-soap php-xml php-zip unzip zip unrar-free rar unace non-free arj rpm alien wine winbind samba smbclient cifs-utils openvpn pptpd strongswan xl2tpd radvd bird bird6 quagga frrouting bind9 dnsmasq dhcp isc-dhcp-server tftpd-hpa vsftpd proftpd ftp pure-ftpd filezilla server rtorrent transmission-daemon deluge qbittorrent aria2 axel httpie curl wget rsync grsync syncthing nextcloud desktop owncloud desktop seafile desktop minio client awscli azure-cli google-cloud-sdk doctl terraform ansible puppet chef saltstack nomad consul vault packer vagrant virtualbox vagrant-libvirt qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager genisoimage xorriso mkisofs dosfstools mtools parted gparted testdisk photorec foremost scalpel extundelete ext3grep recoverjpeg jpeg-repair-tool pngfix gifix pdf-redact-tools office-writer wordgrinder abiword libreoffice writer onlyoffice desktop editors calligra words scribus texlive-base texlive-latex-extra texlive-fonts-recommended latexmk biblatex biber lyx kile gummi texmaker texstudio overleaf-desktop auth0-lock webauthn io jsonwebtoken jwt decode encode verify sign oauth2 passport js nodejs express koa nestjs fastify feathersjs loopback restify micro lambda api gateway cloudflare workers vercel now netlify firebase functions aws amplify microsoft azure functions google cloud functions oracle fn project function framework chalice zappa serveless serverless framework faunadb cosmosdb dynamodb mongodb atlas realm database cockroachdb yugabyte db timescaledb influxdb grafana prometheus datadog newrelic splunk sumologic graylog elk stack logstash elasticsearch kibana opensearch observability monitoring alerting notification slack webhook telegram discord matrix email smtp mailgun sendgrid postmark mandrill ses sns sqs sns sfn stepfunctions workflows automation scripting bash shell perl ruby go rust typescript coffeescript elm clojure erlang elixir nim crystal haskell ocaml ml scheme lisp smalltalk forth ada cobol fortran basic assembly language programming development ide code editor text editor terminal emulator console utility command line tool cli gui application software hardware network infrastructure system administration security privacy encryption decryption hashing signing verifying authenticating authorizing access control identity management single sign-on multi-factor authentication password manager keychain wallet biometrics fingerprint face recognition voiceprint retina scan behavioral analytics anomaly detection threat intelligence vulnerability assessment penetration testing red team blue team purple team bug bounty program responsible disclosure ethical hacking cybersecurity awareness training education certification course book tutorial video podcast blog article news report research paper whitepaper case study use case success story failure analysis lessons learned best practices guidelines standards compliance regulation policy governance risk management business continuity disaster recovery incident response emergency preparedness crisis communication reputation management brand protection intellectual property rights copyright trademark patent trade secret licensing agreement contract negotiation partnership collaboration community building user engagement customer satisfaction product market fit startup growth scaling venture capital private equity investment fundraising pitch deck demo day accelerator incubator co-working space remote work distributed team agile scrum kanban lean six sigma continuous integration delivery deployment ci cd pipeline devops site reliability engineering performance optimization scalability availability durability fault tolerance resilience redundancy failover backup restore snapshot clone image container orchestration service mesh api gateway load balancer reverse proxy caching compression encoding decoding transformation translation localization internationalization globalization accessibility inclusivity diversity equity social impact environmental sustainability corporate social responsibility esg metrics reporting dashboard visualization data science machine learning artificial intelligence natural language processing computer vision robotics autonomous systems smart cities internet of things edge computing fog computing quantum computing blockchain cryptocurrency bitcoin ethereum litecoin ripple stellar cardano solana avalanche polygon flow near fantom harmony tezos algorand osmosis junod crypto com binance coinbase kraken gemini okex huobi bitfinex gate io kucoin bybit mexc hitbtc probit ascendex poloniex liqui livecoin wazirx zb com bigone hotbit latoken digifinex exmo paymium local bitcoins bisq hodlhodl atomic dex decentralized exchange liquidity pool yield farming staking mining proof-of-work proof-of-stake consensus algorithm cryptographic hash function digital signature public-private key pair asymmetric cryptography symmetric cryptography hybrid cryptosystem zero knowledge proof homomorphic encryption secure multiparty computation differential privacy federated learning transfer learning few-shot learning one-shot learning unsupervised learning semi-supervised learning reinforcement learning deep learning neural networks convolutional recurrent generative adversarial transformers bert roberta electra distilbert tinybert mobilebert albert bart megatron llama flan palm paq piqa qwen chatbots virtual assistants intelligent agents recommendation engines search ranking information retrieval question answering summarization paraphrasing translation multilingual models cross-lingual transfer low-resource languages endangered dialects pidgin creole constructed conlangs esperanto interlingua ido lojban toki pona klingon elvish dwarvish high valyrian astaporani meereenese braavosi volantis norvoska qarthii thern yi ti ji liu qi ya ne ru yo wa la si ta ka na ma ha ga za da ba pa va fa sa sha ja cha nya tha pha khwa ghya jha wha qua shwa zhwa dhwa bhwa phwa fhwa sshtch skwrl blargh glumph snorgle frizzle plonk twerp floomp boink schnozzle doodah dingus widget gadget contraption thingamajig whatsit doohickey whatchamacallit thingummy doodad doojigger jimmyhat whatnot wherefore whyfor howcome whosit whompitywhatsit whichabob whosis whatchacallit whatsisname so-and-so someone something somewhere sometime somehow somebody somethingsomething whatever whoever whenever wherever however whichever whatsoever whosoever whithersoever whenceforthwith heretoforewhereunto notwithstanding as such inasmuch whereby wherein hereinafter aforementioned aforesaid hereinbefore thereupon albeit ergo henceforth nonetheless notwithstanding notwithstanding notwithstanding. 以上是一些可能用到的软件列表,实际需求可根据具体情况调整。对于 OpenSIPS 来说,重点在于 MySQL 和其他支持模块所需的库文件已经提及[^1]。 #### 下载源码 前往官方 GitHub 页面获取指定版本的源代码压缩包链接,并下载解压: ```bash wget https://github.com/OpenSIPS/opensips/archive/v2.4.3.tar.gz tar zxvf v2.4.3.tar.gz cd opensips-2.4.3/ ``` #### 配置编译选项 通过 `make menuconfig` 工具
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程乐园

请我喝杯伯爵奶茶~!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值