DPS Build
关于 Apple neural engine 的细节 https://github.com/hollance/neural-engine
读了一遍 repo 里所有的文档,有些很有意思的点:
1. Apple Neural Engine (ANE) 是和 CPU/GPU 不一样的计算核心,专门用来处理神经网络的计算。理想的情况下,最好把所有神经网络的计算任务交给 ANE,而不是 CPU 或者 GPU;
2. 但是呢,我们无法强制指定任务给 ANE,只能告诉任务去尝试使用 ANE。大体的原因是因为,不是所有的 layer 都可以在 ANE 里计算。Core ML 会把合适的 layer 放在 ANE 里计算,把不合适的放在 CPU 或者 GPU 里计算;
3. 也就是说 Core ML 会自行判断具体的 layer 调用哪个计算核心,CPU / GPU / ANE,所以开发者只能不断尝试,将不支持的 layer 替换成支持 ANE 的 layer。
1. Apple Neural Engine (ANE) 是和 CPU/GPU 不一样的计算核心,专门用来处理神经网络的计算。理想的情况下,最好把所有神经网络的计算任务交给 ANE,而不是 CPU 或者 GPU;
2. 但是呢,我们无法强制指定任务给 ANE,只能告诉任务去尝试使用 ANE。大体的原因是因为,不是所有的 layer 都可以在 ANE 里计算。Core ML 会把合适的 layer 放在 ANE 里计算,把不合适的放在 CPU 或者 GPU 里计算;
3. 也就是说 Core ML 会自行判断具体的 layer 调用哪个计算核心,CPU / GPU / ANE,所以开发者只能不断尝试,将不支持的 layer 替换成支持 ANE 的 layer。
斯坦福开源了一个机械手臂方案,可以做非常精确的操作,比如从钱包里取出证件,用乒乓球拍颠球等等
https://twitter.com/tonyzzhao/status/1640393026341322754
https://twitter.com/tonyzzhao/status/1640393026341322754
gpt4all: a chatbot trained on a massive collection of clean assistant data including code, stories and dialogue
demo 是在一台 M1 的 Mac 上跑的,输出非常快
https://github.com/nomic-ai/gpt4all
demo 是在一台 M1 的 Mac 上跑的,输出非常快
https://github.com/nomic-ai/gpt4all
GitHub
GitHub - nomic-ai/gpt4all: GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use. - nomic-ai/gpt4all
👍4
用 ChatGPT API 来辅助解析抓取下来的网页,只要 写 prompts 就能清洗数据。
想法是挺好的,不过这么调取 ChatGPT 估计跟贵吧?
https://github.com/Smyja/blackmaria/tree/main/blackmaria
想法是挺好的,不过这么调取 ChatGPT 估计跟贵吧?
https://github.com/Smyja/blackmaria/tree/main/blackmaria
GitHub
blackmaria/blackmaria at main · smyja/blackmaria
Python package for webscraping in Natural language - blackmaria/blackmaria at main · smyja/blackmaria
Guardrails is a Python package that lets a user add structure, type and quality guarantees to the outputs of large language models (LLMs)
At the heart of Guardrails is the rail spec. rail is intended to be a language-agnostic, human-readable format for specifying structure and type information, validators and corrective actions over LLM outputs.
https://github.com/ShreyaR/guardrails
At the heart of Guardrails is the rail spec. rail is intended to be a language-agnostic, human-readable format for specifying structure and type information, validators and corrective actions over LLM outputs.
https://github.com/ShreyaR/guardrails
GitHub
GitHub - guardrails-ai/guardrails: Adding guardrails to large language models.
Adding guardrails to large language models. Contribute to guardrails-ai/guardrails development by creating an account on GitHub.
DPS Build
一个人,一个 app,一亿下载量 https://t.me/tms_ur_way/2636
Telegram
DPS Main
Daily Productive Sharing 685 - A $500K Acquisition Offer
来自越南的独立开发者 Tony Dinh 最近收到了一个产品收购邀约,他分享了整个历程以及所学到的经验:
1 收购方两次报价分别为30万美金和50万美金,都低于 Tony 的预期;
2 对于 Tony 而言,他认为自己会卖掉这一产品的情形要满足三个条件:不再对这一产品感兴趣,不再相信它会增长,而且急需现金;
3 从收购方而言,他们的资金来自于各种借款和投资,所以他们不会先行支付大量现金;…
来自越南的独立开发者 Tony Dinh 最近收到了一个产品收购邀约,他分享了整个历程以及所学到的经验:
1 收购方两次报价分别为30万美金和50万美金,都低于 Tony 的预期;
2 对于 Tony 而言,他认为自己会卖掉这一产品的情形要满足三个条件:不再对这一产品感兴趣,不再相信它会增长,而且急需现金;
3 从收购方而言,他们的资金来自于各种借款和投资,所以他们不会先行支付大量现金;…
Twitter 开源了它的推进算法
https://blog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm
https://github.com/twitter/the-algorithm-ml
#ml #open
https://blog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm
https://github.com/twitter/the-algorithm-ml
#ml #open
X
Twitter's Recommendation Algorithm
Twitter aims to deliver you the best of what’s happening in the world right now. This blog is an introduction to how the algorithm selects Tweets for your timeline.
Apple 官方发布的 stable diffusion on Core ML wrapper,生成速度堪比 3080
https://github.com/apple/ml-stable-diffusion
https://github.com/apple/ml-stable-diffusion
GitHub
GitHub - apple/ml-stable-diffusion: Stable Diffusion with Core ML on Apple Silicon
Stable Diffusion with Core ML on Apple Silicon. Contribute to apple/ml-stable-diffusion development by creating an account on GitHub.
使用
具体原理是:每次的调用不需要使用到所有的 weights,所以使用 lazy loading 可以大大减少内存的消耗。
https://github.com/ggerganov/llama.cpp/discussions/638?sort=top#discussioncomment-5492916
mmap() 之后,30B 的 LLM 只用到了不到6G内存具体原理是:每次的调用不需要使用到所有的 weights,所以使用 lazy loading 可以大大减少内存的消耗。
https://github.com/ggerganov/llama.cpp/discussions/638?sort=top#discussioncomment-5492916
GitHub
30B model now needs only 5.8GB of RAM? How? · ggerganov/llama.cpp · Discussion #638
(Edit: apologies, I should have clarified initially I'm running on Linux OS. I didn't realize it might not be obvious from the screenshot alone for a non-Linux users.All tests are done on U...
❤1
DPS Build
Apple 官方发布的 stable diffusion on Core ML wrapper,生成速度堪比 3080 https://github.com/apple/ml-stable-diffusion
一个开源的 diffusion app,利用了 Core ML,可以使用 Homebrew 安装
https://github.com/godly-devotion/MochiDiffusion
模型需单独下载,如果想利用 neural engine 的话,请下载 split_einsum 版本的模型
https://huggingface.co/coreml
https://github.com/godly-devotion/MochiDiffusion
模型需单独下载,如果想利用 neural engine 的话,请下载 split_einsum 版本的模型
https://huggingface.co/coreml
GitHub
GitHub - MochiDiffusion/MochiDiffusion: Run Stable Diffusion on Mac natively
Run Stable Diffusion on Mac natively. Contribute to MochiDiffusion/MochiDiffusion development by creating an account on GitHub.
记录了一下最近使用 Carrd 连接自定义 API 的经历。
Carrd 是由 AJ 一个人创建的建站服务,2016年发布之后,两年就达到了一百万美金的 ARR。
Carrd 非常容易上手,这次我们尝试使用一个 custom form 的功能,遇到了一些困难。中间遇到了一些困难。开了 ticket 之后,AJ 一直跟进,工作日基本上一小时内就有回复,休息日也会在24小时内回复。非常佩服他的响应速度!
https://letters.acacess.com/carrd-with-apis/
Carrd 是由 AJ 一个人创建的建站服务,2016年发布之后,两年就达到了一百万美金的 ARR。
Carrd 非常容易上手,这次我们尝试使用一个 custom form 的功能,遇到了一些困难。中间遇到了一些困难。开了 ticket 之后,AJ 一直跟进,工作日基本上一小时内就有回复,休息日也会在24小时内回复。非常佩服他的响应速度!
https://letters.acacess.com/carrd-with-apis/
DPS - Daily Productivity Sharing
Connecting Carrd to Customized APIs
Carrd is an elegant and concise web page building tool, which is great for making a one-page site. Amazing, it is built by only ONE person – AJ.
DONE!
Carrd = a free platform for building simple, fully responsive one-page sites for pretty much anything…
DONE!
Carrd = a free platform for building simple, fully responsive one-page sites for pretty much anything…
❤1
DPS Build
记录了一下最近使用 Carrd 连接自定义 API 的经历。 Carrd 是由 AJ 一个人创建的建站服务,2016年发布之后,两年就达到了一百万美金的 ARR。 Carrd 非常容易上手,这次我们尝试使用一个 custom form 的功能,遇到了一些困难。中间遇到了一些困难。开了 ticket 之后,AJ 一直跟进,工作日基本上一小时内就有回复,休息日也会在24小时内回复。非常佩服他的响应速度! https://letters.acacess.com/carrd-with-apis/
昨天在 Twitter 上总结了这篇文章的要点,并且 @ 了 AJ 表示感谢。没想到 AJ 顺手转发了这条 tweet,一天下来有3000多浏览
https://twitter.com/eiflesrd/status/1643158781952417794
https://twitter.com/eiflesrd/status/1643158781952417794