Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.Background Removal in the Browser Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo. Overview @imgly/background-removal is a powerful npm package that allows developers to seamlessly remove the background from images directly in the browser. Wi…
《构筑大语言模型应用:应用开发与架构设计》一本关于 LLM 在真实世界应用的开源电子书,介绍了大语言模型的基础知识和应用,以及如何构建自己的模型。其中包括Prompt的编写、开发和管理,探索最好的大语言模型能带来什么,以及LLM应用开发的模式和架构设计。构筑大语言模型应用:应用开发与架构设计 aka. Unlocking the Potential of Large Language Models: Real-World Use Cases 2023 年的上半年里,我(@phodal)和 Thoughtworks 的同事们(如:@tianweiliu、@teobler、@mutoe 等)、 开源社区的同伴们(如: 卷王@CGQAQ、@genffy、 @liruifengv 等) 一起,创建了一系列的流行的或者不流行的开源项目。它们涉及了: LLM 能力的充分运用 Prompt 编写:Prompt 学习与编写模式 Prompt 管理:Prompt 即代码 LLM 下的软件开发工序及应用架构设计 新的交互设计:Chat模式 大模型友好的工序:基于 AI 2.0 (ChatG…
花了大半个月,我终于逆向分析了Github Copilot 背景 众所周知,Github Copilot是一种基于机器学习的代码自动补全工具。它使用了来自GitHub的大量代码作为训练数据,并使用OpenAI的语言模型来生成代码。Copilot还可以学习用户的编码习惯,并根据上下文推断出正确的代码片段。 在实际使用中发现大部份提示还是非常好用的,能够较为准确的推测出用户意图,甚至是基于项目其他文件的上下文进行推理。比较好奇这里是怎么做到的,于是探索了这个VSCode插件的详细实现。 准备工作 由于Copilot并没有开源,因此我们需要做一些逆向的准备。 首先,找到VSCode插件的安装目录,拿到extension.js: 在mac下插件目录在~/.vscode下,我们可以拿到一个经过压缩混淆的文件: 1. 分割webpack_modules 针对整个webpack压缩混淆的js,我们首先要将不同的bundle识别出来,分割成单个文件,以便于后续的分析。 由于压缩后的代码存在很多不确定性,一开始打算尝试通过正则提取,但无论如何都有各种边界情况导致提取不正确,最简单的方法还是通过AS…
屏蔽推特回复下的黄推。Block pornographic replies below the tweet.背景 实在受不了推文下无休无止的回复引流的黄推了,musk 管不了的,我来管 设计宗旨 隐私优先。本插件纯客户端代码,无服务端 api 或前端监控等设计 使用方式 进入 chrome://extensions/,打开「开发者模式」 把代码包下载解压拖到里面即可 效果 目前一定得自己装了插件才有用。且只针对推文回复下的黄推。插件有 2 种功能。 1.标记推文回复下的黄推引流,并在自身浏览时隐藏 一键批量屏蔽 具体可以拿立党的推文 https://twitter.com/lidangzzz/status/1674346633335648256 检测下 说明 原理采用的是内置的「关键词匹配」检测是否是黄推,然后进行浏览器样式上的隐藏(非推特的 Block 功能),准确率大约 90%。会有少少部分的错判和漏判。可以通过点击「移出列表」按钮加入白名单 后续计划 增加 on/off 配置 增加一键 block 功能 适配 firefox 浏览器 进入 St…
Run inference on MPT-30B using CPUMPT 30B inference code using CPU Run inference on the latest MPT-30B model using your CPU. This inference code uses a ggml quantized model. To run the model we'll use a library called ctransformers that has bindings to ggml in python. Turn style with history on latest commit: Video of initial demo: 2023-06-25.20-13-24.mp4 Requirements I recommend you use docker for this model, it will make everything easier for you. Min…
获取QQSign通过Unidbgunidbg-fetch-qsign 获取QQSign参数通过Unidbg,开放HTTP API。unidbg-fetch-sign最低从QQ8.9.33(不囊括)开始支持,TIM不支持。 多人使用请提高count值以提高并发量!!! 切记 公共API具有高风险可能 请使用与协议对应版本的libfekit.so文件 QSign基于Android平台,其它平台Sign计算的参数不同,不互通(例如:IPad)。 不支持载入Tim.apk的so文件。 部署方法 Jar部署 系统安装jdk或者jre,版本1.8或以上(仅1.0.3及更高版本,老版本要求jdk11)。如果报错找不到类,请尝试1.8或略靠近1.8的版本 解压后cd到解压目录,执行以下命令启动程序。 bash bin/unidbg-fetch-qsign --host=0.0.0.0 --port=8080 --count=2 --library=txlib\8.9.63 --android_id=你的android_id 注意:你需要手动从apk安装包的lib/arm64-…
An ultra-simplified explanation of design patterns implemented in javascript 🎉 Ultra-simplified explanation to design patterns! 🎉 A topic that can easily make anyone's mind wobble. Here I try to make them stick in to your mind (and maybe mine) by explaining them in the simplest way possible. Based on "Design patterns for humans" Follow me on twitter and check out my blog 🚀 Introduction Design patterns are solutions to recurring problems guidelines on how to tackle certain pr…
Fine-tuning ChatGLM-6B with PEFT | 基于 PEFT 的高效 ChatGLM 微调ChatGLM Efficient Tuning Fine-tuning 🤖ChatGLM-6B model with 🤗PEFT. 👋 Join our WeChat. [ English | 中文 ] Changelog [23/06/25] Now we align the demo API with the OpenAI's format where you can insert the fine-tuned model in arbitrary ChatGPT-based applications. [23/06/25] Now we support fine-tuning the ChatGLM2-6B model with our framework! Try --use_v2 argument to fine-tune that model. [23/06/05] Now we support 4-bit LoRA training (ak…