ChatGPT Universe is fleeting notes on ChatGPT, GPT, and large language models (LLMs)
372
365 commits
updated Sep 14, 2024
This tiny place of the Web stores a growing collection of interesting things about ChatGPT and GPT-3 (and beyond) from OpenAI.
ChatGPT was launched on Nov 2022. I want an all-in-one place to keep things about GPT and ChatGPT. So, I hand-curated this list with the help of others (acknowleged below), since early Dec 2022.
The collections are not limited to only the best resources, tools, examples, demos, hacks, apps, and usages of ChatGPT.
The following resources started off based on awesome-chatgpt lists12 but with my own modifications:
Model: The ChatGPT model family we are releasing today,
gpt-3.5-turbo, is the same model used in the ChatGPT product. It is priced at $0.002 per 1k tokens, which is 10x cheaper than our existing GPT-3.5 models.API: Traditionally, GPT models consume unstructured text, which is represented to the model as a sequence of “tokens.” ChatGPT models instead consume a sequence of messages together with metadata.
Example prompts.
golergka/advent-of-code-2022-with-chat-gpt - Solving Advent of Code 2022 with ChatGPT.
max-sixty/aoc-gpt - First place in Advent of Code leaderboard with GPT-3.
greshake/Alice - Giving ChatGPT access to a real terminal.
RomanHotsiy/commitgpt - Automatically generate commit messages using ChatGPT.
gpt-commit-summarizer - Generate Pull Request summaries and Git commit descriptions.
vrescobar/chatGPT-python-elm - A Git repository fully generated by ChatGPT.
gpt-game - An short game written in Elixir and LiveView using ChatGPT.
chatdb - ChatGPT-based database, wait... WHAT?
chat-gpt-ppt - Use ChatGPT to generate PPT automatically.
emailGPT - A quick and easy interface to generate emails with ChatGPT.
gptlang - An experiment to see if we can create a programming language in ChatGPT.
ChatRWKV - Like ChatGPT but powered by the RWKV (RNN-based) open language model. [HuggingFace Space: RWKV-4 (7B Instruct v2), code (their claim RNN with Transformer-level LLM performance is a lot better then I expected.)]
GraphGPT - Extrapolating knowledge graphs from unstructured text using GPT-3.
Doc Search - Explore documents (books, papers, legal docs) without limits. Converse with a book. Inspired by "Book Whisperer" idea (Tweet). Open source alternative to Filechat.io.
What if GPT had internal context on your business? (Tweet and video demo) - They build a chatbot that could use context from enterprise data to answer internal business queries. This project integrated LangChain (agent decides what tools to query once the chatbot receives a request) and GPT Index (load Snowflake DB). Interesting idea in knowledge management.
MetaAI's LLaMA 🦙
Trying out Flan-UL2 20B - Code walkthrough by Sam Witteveen. This shows how you can get it running on 1x A100 40GB GPU with the HuggingFace library and using 8-bit inference. Samples of prompting: CoT, zeroshot (logical reasoning, story writing, common sense reasoning, speech writing). Lastly, testing large (2048) token input. Bonus: don't have A100? You can use the HuggingFace Inference API for UL2.
metamorph - Self-editing GPT-4 application.
MiniGPT-4 - A research trying to replicate GPT-4 multi-modal abilities.
Llama2.c by Karpathy - Inference Llama 2 in one file of pure C. 👍
this is just a weekend project: I took nanoGPT, tuned it to implement the Llama-2 architecture instead of GPT-2, and the meat of it was writing the C inference engine in
run.c.Hat tip to llama.cpp for inspiring this project. I wanted something super minimal so I chose to hard-code the llama-2 architecture, stick to fp32, and just roll one inference file of pure C with no dependencies.
Less is more.
This commit make it possible to load and inference Meta's Llama 2 7B model now.
My fork - performance benchmarks, optimizations, and work-in-progress Zig port. I was porting this project to Rust but these forks beat me to it. The earliest Rust port I've seen is by @garrisonhess but no where found in the project's README.
Speculation: My hunch is telling me that Karpathy is working towards releasing (and open sourcing?) OpenAI model as weights. Hints: he left and went back to OpenAI, his Tweet
Worth noting that all of Llama2.c is quite generic to just Transformer language models in general. If/when OpenAI was to release models as weights (which I can neither confirm nor deny!) then most of the code here would be very relevant.
Lightly edited. Emphasis mine.
Other hints: his prior works including nanoGPT, Software 2.0, and recently micro-LLMs with Llama2.c
If you know, you know. 😆
llm.c by Karpathy - LLM training in simple, raw C/CUDA. (Plan: once this is in a bit more stable state, videos on building this in more detail and from scratch.) [Tweet]
2022
... Even with non-conversational search engines, we know that is common to place undue trust in the results: if the search system places something at the top of the list, we tend to believe it is a good or true or representative result and if it doesn’t find something, it is tempting to believe it does not exist.
2023
Microsoft and OpenAI Working on ChatGPT-Powered Bing in Challenge to Google
Some remarks on Large Language Models by Prof. Yoav Goldberg.
Why ChatGPT won’t replace search engines any time soon by Algolia.
Anthropic's Claude improves on ChatGPT but still suffers from limitations
Wolfram|Alpha as the Way to Bring Computational Knowledge Superpowers to ChatGPT
DeepMind's CEO Helped Take AI Mainstream. Now He's Urging Caution
DeepMind is also considering releasing its own chatbot, called Sparrow, for a "private beta" some time in 2023. (The delay is in order for DeepMind to work on reinforcement learning-based features that ChatGPT lacks, like citing its sources.)
General availability of Azure OpenAI Service expands access to large, advanced AI models with added enterprise benefits - ChatGPT is coming soon to the Azure OpenAI Service.
An important next step on Google's AI journey - Google soft launches Bard, a ChatGPT competitor to "trusted testers". Bard is new AI features in Google Search. Bard is an experimental conversational AI service, powered by LaMDA (Language Model for Dialogue Applications). Google promises to make this available more widely in the coming weeks. API will be available for developers to build on. Google have not address how it plans to provide attribution and/or citations for its answers, either from Bard or in search results.
Microsoft announces new Bing and Edge browser powered by upgraded ChatGPT AI
Man and machine: GPT for second brains - About author second-brain note-taking system — how to improve processes for learning and personal knowledge management (PKM).
China's Baidu Developing Its Own ChatGPT, Joining Latest Global AI Race - Ernie or, Enhanced Representation through Knowledge Integration (Ernie 3.0 article and paper) is an LLM. Baidu was planning to launch such a service in March. Alibaba and Tencent also join the ChatGPT rush.
In 2019, Baidu developed a deep-learning model known as Ernie, based on Google's breakthrough, which it has used to improve its search results, including to make them more relevant. The company has since developed dozens more Ernie models and extended their capabilities to include image and art generation, similar to those of OpenAI's Dall-E.
ChatGPT Is a Blurry JPEG of the Web - OpenAI’s chatbot offers paraphrases, whereas Google offers quotes. Which do we prefer?
I made ChatGPT and Bing AI have a conversation (and they are friends now)
Bing: "I will not harm you unless you harm me first" - A good roundup about Bing "Sydney" AI chatbot. The fascinating weirdness of it — multiple personalities depending on the social context (prompting). Entertaining?
It's increasingly looking like this may be one of the most hilariously inappropriate applications of AI that we've seen yet. What can we make of this all? I am finding this whole thing absolutely fascinating, and deeply, darkly amusing. I've been LOL at these examples all day.
Text is All You Need: Personhood appears to be simpler than we thought - Ignoring the balloons, the author guess we have our first significant, year-defining news of 2023 — the initial reactions of the Bing "Sydney" AI chatbot. This is a Copernican moment? A thought provoking essay. I think this is the first good "formal" take on the impact for our sense of selfhood resulting from the appearance of LLM based conversational systems like ChatGPT.
In brief, it appears that Sydney has somewhat different machinery under the hood than ChatGPT, and the transcripts suggests a personality that is about the same in terms of coherence, but a wild leap beyond in terms of charisma and colorfulness. Depending on how you push Sydney, it/they appears capable of playing everything from a mean manipulative teenager to a paranoid psychotic, to a stubborn and peremptory conversational martinet.
"Dave, you're making assumptions. Can you prove any of this?" I can, actually, since some submissions that required screenshots also included ChatGPT browser tabs, which helpfully included the initial text of the prompt. Apparently, it's not even something students feel they need to hide.
OpenAI has privately announced a new developer product called Foundry (Tweet), which enables customers to run OpenAI model inference at scale with dedicated capacity. (GPT-3.5 Turbo appears to be referring to the ChatGPT Turbo model)
Don't believe ChatGPT - we do NOT offer a "phone lookup" service
My class required AI. Here's what I've learned so far - Lessons learned from integrating ChatGPT into education. The takeaways: 1) Work produced by prompting with a co-editing approach (bouncing ideas back and forth with the chatbot) tends to end up with students doing the best work; 2) Students need to be taught how to write prompts effectively - it doesn't come naturally.
Emergent Deception and Emergent Optimization - Have you wonder why LLMs simply predicting the next word leads to planning abilities (human-like behavior, novels/histories)? This post discusses the concept of emergent deception and emergent optimization which are two strategies that can be used to achieve a goal. There's two principles for reasoning about future emergent capabilities: 1) capabilities that would lower training loss will likely emerge in the future. 2) as models get larger and are trained on more and better data, simple heuristics tend to get replaced by complex ones. Principle 1 means LLMs trained to predict words get lower loss if they can simulate planning abilities.
How to make LLMs say true things - TL;DR: The method is using "World Model", an embeddings database filled with "beliefs" (chunks of declarative statements) with a confidence percentage that's computed using Bayes Theorem.
Why China Didn't Invent ChatGPT - The NYT argues that excessive censorship, geopolitical tensions with the US, and attempts to control private sector companies have led to Chinese companies falling behind their US counterparts in AI.
China's First ChatGPT-Like Chatbot MOSS Released For Public Testing [Direct link to app]
For China, ChatGPT may be an advance but also an 'ethical problem' - China's science and tech minister says the chatbot has taken Chinese society by storm and has adopted measures on AI regarding ethics.
ChatGPT get-rich-quick schemes are coming for magazines, Amazon, and YouTube (2023)
Snapchat is releasing its own 'My AI' chatbot powered by ChatGPT
Meta's powerful AI language model LLaMA has leaked online — what happens now? - The transcript of Shawn Presser's interview for The Verge is more interesting.
I think it's very likely that this model release will be a huge milestone. The ability to run LLaMA on a single A100 GPU — which "most of us either have access to ... or know someone that can let us use one for a bit” — is a “huge leap.”
To be exact, you can run LLaMA-65B in int8 precision (bnb) on a single A100 80GB GPU.
Turns out, that code sucks. I really don't want to be too harsh on them, since it's easy to underestimate just how important it is to get the default settings exactly right. But their defaults were all screwed up. They didn't use "Top K". They used Top P, which I never got good results from (either identical to top k or slightly worse). Their default temperature was 0.8, which was way too high. And worst of all, they didn't have a repetition penalty -- so by default, this thing would just yammer on and on about exactly the same thing.
100% this! I learned my lesson too in my LLaMA fork. My sampler settings were not optimal. The yammering is obvious and I've seen it. But I don't know why I didn't fix the sampler repetition penalty earlier.
ChatGPT Explained: A Normie's Guide To How It Works - Even my grandparents can understand this. But nerd gonna nerd anyway :laughing:
What should you use ChatGPT for?
What is clear to me is that we are in a new paradigm for the way we navigate content, whether through this model or other ones that are released soon. Upon prompting, the new universe gives us results, but those results are more directional vibes than concrete answers. It is up to us to figure out how to direct them in ways that we want for the best results and navigate the noise.
Large language models are having their Stable Diffusion moment (simonwillison.net)
This all changed yesterday, thanks to the combination of Facebook’s LLaMA model and llama.cpp by Georgi Gerganov.
(1) Easy to run on my own hardware
(2) Open source enough that they can be tinkered with
(3) Large enough to be useful—ideally equivalent in capabilities to GPT-3
It's not the perfect moment. We've achieved 1 and 3 except 2. LLaMA is NOT actually open source (while the license for the code is GPL 3, the model weights are not). Truly open models really matter.
As GPT-4 chatter resumes, deep learning pioneer Yoshua Bengio says ChatGPT is a 'wake-up call' - The wake up call was GPT-3 and scaling laws in 2021. It's just the alarm clock got louder now.
ChatGPT's API is So Good and Cheap, It Makes Most Text Generating AI Obsolete
Confirmed: the new Bing runs on OpenAI’s GPT-4 - Bing Chat (Sydney) was GPT-4 all along.
Wikipedia - A good run down of GPT-4.
The Multi-modal, Multi-model, Multi-everything Future of AGI - GPT-4 recap.
Can GPT-4 Actually Write Code? - Testing GPT 4's code-writing capabilities with some actual real world problems.
Could you train a ChatGPT-beating model for $85,000 and run it in a browser?
Try Bard and share your feedback - Google starting to open access to Bard, an early experiment that lets you collaborate with generative AI. They're beginning with the U.S. and the U.K., and will expand to more countries and languages over time.
Google’s Bard lags behind GPT-4 and Claude in head-to-head comparison
NVIDIA Brings Generative AI to World's Enterprises With Cloud Services for Creating Large Language and Visual Models - NVIDIA AI Foundations is NVIDIA going beyond a pure hardware provider and into software supporting Generative AI with their offerings for every workload, from foundation model as a service (coming to enterprise, customized for your proprietary data) to multimodal from day 1.
GitHub Copilot X: The AI-powered developer experience - GitHub Copilot is evolving to bring chat and voice interfaces, support pull requests, answer questions on docs, and adopt OpenAI’s GPT-4 for a more personalized developer experience.
Cheating is All You Need by Steve Yegge, Sourcegraph.
There is something legendary and historic happening in software engineering, right now as we speak, and yet most of you don’t realize at all how big it is.
LLMs aren't just the biggest change since social, mobile, or cloud–they're the biggest thing since the WWW.
I mean, this stuff is unbelievably powerful. And yet I am persistently met with a mixture of disbelief and pearl-clutching.
... five times as productive. 😲
A Brief Mini-History of LLMs
The punchline, and it’s honestly one of the hardest things to explain, so I’m going the faith-based route today, is that all the winners in the AI space will have data moats. ... Why? Because the data moat is how you populate the context window ("cheat sheet").
LLMs aren’t some dumb fad, like crypto. Yes, crypto was a dumb fad. This is not that.
Google "We Have No Moat, And Neither Does OpenAI" - Leaked internal Google Document claims open source AI will outcompete Google and OpenAI.
Understanding GPT tokenizers by Simon Willison.
It is starting to get strange - Let's talk about ChatGPT with Code Interpreter & Microsoft Copilot.
Donald Knuth plays with ChatGPT - Knuth is a computer scientist. Known as the "father" of the analysis of algorithms.
Uncensored Models - Uncensoring WizardLM. Since there was work already done to uncensor Vicuna, I was able to rewrite their script so that it will work on the WizardLM dataset.
GPT-4 model architecture (Tweets) - Derived from the original source (blog post): GPT-4 architecture, infrastructure, Training Dataset, Costs, Vision, MoE
Llama 2: an incredible open LLM - The best summary of the Llama 2 paper.
Llama 2 - Every Resource You Need by Philipp Schmid.
Large language models, explained with a minimum of math and jargon - It seemed like a good explainer on how LLMs work. I don't know how to appreciate the last section that goes into a bit of philosophy and theories about how human learn. (the last section lacks evidence-based assertion)
So you want to build your own open source ChatGPT-style chatbot (hacks.mozilla.org)
How is LLaMa.cpp possible? (finbarr.ca) - Long before LLM going mainstream, everyone has been saying large models require a lot of expensive GPUs. Like the author, we want to prove them wrong. The writer of this post took their confusion and dove into the math surrounding inference requirements to understand the constraints we’re dealing with. Surprisingly, there's no magic here, only things beyond our understanding at first. Model compression or more specifically quantization makes it possible. There's no "free lunch" though — the cost of quantized model is essentially, you lose some accuracy. Meaning, for very large model sizes, the differences might be negligible. Curious? This semi-related post did a comparison between different quantized Transformers perplexities/accuracies.
Beating GPT-4 on HumanEval with a Fine-Tuned CodeLlama-34B (www.phind.com) - Good progress and no big surprise. I've realized that benchmarks like these for models are prone to be poor metrics for measuring how well the models perform in actual real-world work. That's been my experience with the open models.
2024
We need a benchmarks or some sort of independent and human evaluations of real world tasks.
According to Gwern:
A new programming paradigm? You interact with it, expressing any task in terms of natural language descriptions, requests, and examples, tweaking the prompt until it "understands" & it meta-learns the new task. This is a rather different way of using a model, and it's better to think of it as a new kind of programming, prompt programming, where the prompt is now a coding language which programs GPT-3 to do new things.
"Prompting" as an engineering discipline is not here to stay. It's a temporary crutch on the way to natural language interfaces. ChatGPT solves a big portion of the prompting problem. Adding engineering to a term to amplify its perceived importance or difficulty might be unnecessary. We could probably call it "prompt testing/hacking" and not lose any of the meaning.
Related articles:
Why "Prompt Engineering" and "Generative AI" are overhyped
Related Tweets:
Prompt engineering is dead, long live dialogue engineering. — VP Product, OpenAI
Wanted: Prompt engineer. Minimum 10 years prompt engineering experience. #hiring #joke
Why does ChatGPT work so well? Is it "just scaling up GPT-3" under the hood? In this 🧵, let's discuss the "Instruct" paradigm, its deep technical insights, and a big implication: "prompt engineering" as we know it may likely disappear soon. Source: https://archive.is/dqHI8
Apparently in 2023, prompt programming is not dead. The hottest new programming language is English ~ Karpathy :))
Simon Willison published In defense of prompt engineering as a counter to the "prompt engineering will be made obsolete as AIs get better" argument that he keep seeing.
The newspaper is saying AI whisperer ('Prompt engineers') is tech's hottest new job (2023).
The best prompt engineering guide for developers working with Large Language Models like GPT-4, ChatGPT, and open models like LLaMA would be a combination of multiple resources. Here are some learning resources, tools, libraries, and frameworks to help you learn and master prompt engineering:
By using these resources, you can gain a solid understanding of prompt engineering and develop the skills necessary to work effectively with LLMs.
(* Prompt engineering term was renamed to prompting. The term is overloaded and might be unnecessary.)
More: YouTube videos from curated.tivul.com (I didn't curate this, so quality is not guaranteed)
AI-native applications development. ChatGPT integration. Next generation AI applications. "App Store" layer for language models (including HuggingFace "App Store").
LLM Powered Autonomous Agents (blog post) by Lilian Weng, 2023.
The potentiality of LLM extends beyond generating well-written copies, stories, essays and programs; it can be framed as a powerful general problem solver.
In a LLM-powered autonomous agent system, LLM functions as the agent's brain, complemented by several key components: planning, memory, and tools.
Challenges: long-term planning and task decomposition, reliability of natural language interface.
Smol Developer - Embed a developer agent in your own app.
Retrieval systems to access personal or organizational information sources. Embeddings. Database and data store designed for machine learning models and NLP.
Vector databases for indexing and searching documents
We want a ChatGPT alternative like Stable Diffusion.
Frustrated by all the gatekeeping around AI? Still waiting or cannot get access to LLaMA?
Goals
Ultimate goal: self-hosted version of ChatGPT.
Lessons
Takeaways from EleutherAI one year retro (2021):
FLAN-T5 XXL aka. ChatGPT@Home is a public model that has undergone instruction finetuning. XXL is a 11B model. It is currently the most comparable model against ChatGPT (InstructGPT models are initialized from GPT-3.x series (model card)). There are successful attempts deploying FLAN-T5 on GPU with 24 GB RAM with bitsandbytes-Int8 inference for Hugging Face models. You can run the model easily on a single machine, without performance degradation. This could be a game changer in enabling people outside of big tech companies being able to use these LLMs. Efforts are already underway to create a better FLAN-T5. The community (i.e., LAION) are working on FlanT5-Atlas architecture and a collection of prompted/instructions datasets.
Open-Assistant - Open-source ChatGPT replication by LAION, Yannic Kilcher et al. This project is meant to give everyone access to a great chat based large language model. (Open Assistant Live Coding with Yannic Kilcher (video)) High-level plans:
Phase 1: Prompt collection for supervised finetuning (SFT) and to get the prompts for model generated completions/answers.
Phase 2: Human feedback (e.g. ranking) of multiple outputs generated by the model. Example five model outputs are shown and the user should rank them from best to worst.
Phase 3: Optimization with RLHF which we plan to do via TRLX. And then the we iterate with this new model again over phase 2 and phase 3 hopefully multiple times.
Models will be trained on Summit supercomputer (~6 million NVIDIA V100 hrs per year) [source]
More info, see the LAION LLM proposal (Google Doc) above.
Progress:
Feb 2023: Joi-20B-instruct is a 20B model fine-tuned on a diverse set of instruction datasets and based on NeoX-20B.
Unofficial: This is an early pre-release model (part of development of MVP, phase 1), not directly OpenAssistant (OA) models. They are experiments by the ML team to learn what data, foundation model, methods will work well for OA. As is stated in the website's FAQ, no demo yet. This is for developers to test out early development version of instruction tuning for the model. Maybe first OA models will be derived from these. They have been training good models on a rolling basis as new datasets get completed. There are a variety of model sizes from 1.4B to 20B params available on the HF Hub.
Chatty-LMS build by HuggingFace H4 team - A UI for testing Joi-20B-instruct model. You can chat with it. The agent will reply as Joi (the bot nickname).
Example of code snippet to run the model on your own GPUs: https://gist.github.com/cedrickchee/236e53ed2dca95bd96e5baa35cdd7be2
Mar 2023: They're currently processing the data collected from contributions. The data has over 100k messages, meaning millions of contributions. The quality of the data is beyond what they've ever expected — most of contributions are super high quality. Now, they are exporting the v1 of the dataset. As said, they are currently training the initial batch of models.
11 Mar 2023: The Open Instruction Generalist (OIG) dataset will be releasing. OIG is a large open source instruction dataset that currently contains ~43M instructions.
OIG is one of many chatbot datasets that LAION, along with its volunteers, Ontocord, Together and other members of the open source community, will be releasing and is intended to create equal access to chatbot technology. Everyone is welcome to use the dataset and contribute improvements to it.
The OIG dataset is related to LAION’s Open Assistant project.
9 Mar 2023: Open-Assistant SFT-1 12B Model - Early prototype of English supervised-fine-tuning (SFT) model of the Open-Assistant project. It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations of assistant conversations collected before March 7, 2023. Although the model is only a development milestone, it's usable for a few creative tasks. Try: HuggingFace Space (easy and fast, unoffial chatbot UI), Google Collab. Here's a guide on how to run the model locally on your own computer with a GPU.
23 Mar 2023: This project is starting to shape up nicely. Model is coming along.
/r/ask_open_assistant. Code15 Apr 2023: OpenAssistant is officially out! The release includes models, datasets, and a chat interface. [Announcement video, Try, models]
Note: Please see the GitHub repo for up-to-date info.
News (2023-01-13): They replicated OpenAI's Learning to Summarize paper using trlX library. [report]
lucidrains/PaLM-rlhf-pytorch - (WIP) Implementation of RLHF on top of the PaLM architecture. Basically ChatGPT but with PaLM. The developer plan to add retrieval functionality too, à la RETRO. [Tweet]
2023: Something funny in their FAQ:
There is no trained model. This is just the ship and overall map. We still need millions of dollars of compute + data to sail to the correct point in high dimensional parameter space. Even then, you need professional sailors (like Robin Rombach of Stable Diffusion fame) to actually guide the ship through turbulent times to that point.
News (2022-12-31): There's now an open source alternative to ChatGPT, but good luck running it - My comments: No it hasn't. This is NOT an actual trained model (no weights) you can use. This is just code for training a ChatGPT-like model. Furthermore, the training data (enwik8) is small.
CarperAI's large scale RLHF-aligned model (TRLX) train with LAION's data is coming out early next year. (Source: Tweet)
allenai/RL4LMs - RL for language models (RL4LMs) by Allen AI. It's a modular RL library to fine-tune language models to human preferences.
GPT-JT by Together Research Computer is an example that distributes model training over geo-distributed of diverse computers (and GPUs). GPT-JT (6B) is a variant forked off EleutherAI's GPT-J, and performs exceptionally well on text classification and other tasks. On classification benchmarks such as RAFT, it comes close to state-of-the-art models that are much larger (e.g., InstructGPT davinci v2)! [Paper: Decentralized Training of Foundation Models in Heterogeneous Environments (2022)]
LEAM (Large European AI Models) - The EU planning to fund the development of a large-scale ChatGPT-like model. [website, project documents (English, PDF), concept paper (German, PDF)]
/r/AiCrowdFund - A place just started (2023) where people can find a way to crowd fund (with GPUs) a large AI. I'm not sure whether they've seen Petals where you can run LLMs at home, BitTorrent‑style (federated learning?). It seems to be headed in that direction.
Open source solution replicates ChatGPT training process - They presents an open-source low-cost ChatGPT equivalent implementation process, including:
I got the impression that the point of the article was to plug their Colossal-AI framework and product, a collection of parallel components, tools, and hardwares for large models. Frankly, their numbers do look suspicious to me, unless I've missed something. What makes ChatGPT interesting (over GPT-3) is the RLHF process. They do claim to replicate RLHF process completely. But, the article touch lightly about their RLHF implementation. They train RLHF using a small awesome-chatgpt-prompts as example dataset. Their RLHF implementation details are hidden here: https://github.com/hpcaitech/ColossalAI/blob/main/applications/ChatGPT. Lack of demo doesn't inspire too much confidence though.
FlexGen - Running LLMs like OPT-175B/GPT-3 on a single GPU (e.g., a 16GB T4 or a 24GB RTX3090 gaming card). Key features: 1) up to 100x faster than other offloading systems. 2) Compress both the parameters and attention cache of models down to 4 bits with negligible accuracy loss. 3) Distributed pipeline parallelism. They also provide a Python script and instructions that you can run a chatbot with OPT models. This should solve the challenges of high computational and memory requirements of LLM inference. The chatbot they build with FlexGen and OPT models is not instruction-tuned (RLHF). So this chatbot is not ChatGPT-like though. [High-throughput Generative Inference of LLMs with a Single GPU (paper), Stanford et al., 2023]
Reviews (from Tweets):
ChatLLaMA by NebulyAI - LLaMA-based ChatGPT-style training process implementation. The code represents the algorithmic implementation for RLHF training process that leverages LLaMA-based architectures and does not contain the model weights. This is NOT a ChatGPT-like product. Their RLHF implementation (actor critic trainer, actor-reward model) was inspired by lucidrains's PaLM-rlhf-pytorch implementation. You can also generate your own prompt dataset using LangChain's agents and prompt templates. (They have removed their misleading "15x faster training than ChatGPT" claim. We don't know how fast ChatGPT trained. Many people debate the performance of that repo (based on what?). Another evidence of people talking about things they don't understand about in deep learning. We should stay grounded.)
Fine-tuning 20B LLMs with RLHF on a 24GB consumer GPU by HuggingFace - It is now possible using the integration of TRL with PEFT. The blog post explains how they achieve this step by step. The base model is gpt-neox (I was hoping the show fine-tuning LLaMA. I think they can't because of LLaMA licensing restrictions.)
OpenChatKit by Together Compute - Build your own ChatGPT. A powerful, open-source base to create chatbots for various applications. Try. Much more than a model release. They are releasing a set of tools and processes for ongoing improvement. OpenChatKit includes 4 key components:
Alpaca: A Strong Open-Source Instruction-Following Model by Stanford - Alpaca is a fine-tuned version of LLaMA that can respond to instructions like ChatGPT. Simon Willison wrote about Alpaca, and the acceleration of on-device large language model development. The team at Stanford just released the Alpaca training code for fine-tuning LLaMA with Hugging Face's transformers library. Also, the PR implementing LLaMA models support in Hugging Face was approved yesterday.
A list of open alternatives to ChatGPT, group by model and tags (B: bare, M: mildly bare, F: full, C: complicated).
Hello Dolly: Democratizing the magic of ChatGPT with open models [Code: fine-tuning GPT-J 6B model on the Alpaca dataset] - My thoughts: LLMs could possibly be the first technology that rapidly transforms from a groundbreaking innovation to a widely adopted standard. Within two years, it is anticipated to be an integrated feature in all applications and tools, rather than a distinguishing factor.
See cedrickchee/awesome-transformer-nlp for large language models research.
Use ChatGPT anywhere.
/chatgpt to chat with ChatGPTBot.Web applications.
Desktop applications.
Open-source models are faster, more customizable, more private, and pound-for-pound more capable. 5
Self-hosted LLMs are the way forward for enterprise. Run Large Language Models locally on your devices.
2023 trends
llama2.c ➡️ micro-LLMs (<10B params?) - hackable and efficient, but not at the cost of simplicity, readability, portability.
llama.cpp ➡️ inference at the edge, deployment efficiency.
Growing interest in local, private micro-LLMs and deploying them in laptops, phones, MCUs, etc.
AI alignment and AI interpretability.
AI for the Next Era - OpenAI's Sam Altman on the New Frontiers of AI.
My comments: Reading this after the ChatGPT launch, mostly all the things that Sam is referring to in the interview contains reminiscences about predictions on AI and development from Ray Kurzweil.
Google won't launch ChatGPT rival because of 'reputational risk'
AI Alignment Forum is a single online hub for researchers to discuss all ideas related to ensuring that transformatively powerful AIs are aligned with human values. Discussion ranges from technical models of agency to the strategic landscape, and everything in between.
The Expanding Dark Forest and Generative AI by Maggie Appleton - Proving you're a human on a web flooded with generative AI content.
How should AI systems behave, and who should decide? by OpenAI.
Planning for AGI and beyond by OpenAI (2023) - TL;DR:
If you care about how AGI will impact us all, you should read this.
Software Complexity Is Why AI Won't Replace Software Engineers
Copyright Registration Guidance: Works Containing Material Generated by AI
GPT-4 and the Uncharted Territories of Language by fast.ai - Language is a source of limitation and liberation. GPT-4 pushes this idea to the extreme by giving us access to unlimited language.
I couldn’t keep working. I had to leave the office and go for a walk. Is software engineering basically a solved problem now? Did OpenAI just make the last application? This all sounds hyperbolic and melodramatic when I write it out, but I’m not the only one who felt something like this. Twitter showed me I wasn't alone: "Existential crisis. Did OpenAI just finish software? What's there left to do but clean-up and sweep?"
Is Avoiding Extinction from AI Really an Urgent Priority? by Seth Lazar, Jeremy Howard, and Arvind Narayanan - The history of technology suggests that the greatest risks come not from the tech, but from the people who control it.
AI Safety and the Age of Dislightenment by Jeremy Howard, fast.ai - Model licensing & surveillance will likely be counterproductive by concentrating power in unsustainable ways.
The Leverage of LLMs for Individuals
it gives me the courage to dream and attempt things beyond my current abilities.
AI Index Report 2024 by Institute for Human-Centered AI, Stanford University, 2024.
ChatGPT is incredibly limited, but good enough at some things to create a misleading impression of greatness.
It's a mistake to be relying on it for anything important right now. It's a preview of progress; we have lots of work to do on robustness and truthfulness.
fun creative inspiration; great! reliance for factual queries; not such a good idea. — Sam Altman, OpenAI
John Carmack answering questions about Computer Science (Software Engineering) career from a concerned student:
Build full "product skills" and use the best tools for the job, which today might be hand coding, but later might be AI guiding you, you will probably be fine — Tweet
I’m hearing chatter of PhD students not knowing what to work on.
My take: as LLMs are deployed IRL, the importance of studying how to use them will increase.
Some good directions IMO (no training): prompting, evals, LM interfaces, safety, understanding LMs, emergence
GPT-4 has been out for 72 hours, and it could change the world! Here are some amazing and important things it can't do (yet):
- Solve global warming, 2. Cure cancer or infectious diseases, 3. Alleviate the mental health crisis, 4. Close the information and education gap, 5. End war and strife, and many more.
Stop saying: AI will replace humans.
Start saying: humans who know how to use AI at work will replace those who don’t.
— Jim Fan
The @HuggingFace GPT detector works very well on ChatGPT-created text. I ran 5 student essays and 5 ChatGPT essays for the same prompt through it, and it was correct every time with >99.9% confidence. — @cfiesler
General technology for enabling AI capabilities with LLMs and generative AI models.
GPT-3/LLMs' Achilles heel is short context length - how many "in-context" examples they can consume to learn a new task. Enter "Structured Prompting": scale your examples from dozens => 1,000+ — @mathemagic1an
Software 2.0? Software 3.0? Generative AI?
(Reflections on how best to think of the current state of software engineering, AI products, and pitfalls people tend to make with new tech.)
It's very rare to see a new building block emerge in computing. Large AI models like ChatGPT represent a fundamentally new building block. By integrating large models into software, developers can expose functionality that wouldn't be possible otherwise. This may be one of the biggest changes in software we've ever seen — a new type of software.
Using LLMs in isolation is often not enough to create a powerful app — the real power comes when you are able to combine them with other sources of knowledge or computation.
Is Software 3.0 silly? worth the hype?
I don't know. I think of "Software 3.0" as:
You say investment into generative AI companies is way too exuberant right now? What's the big deal with Generative AI? Is it the future or the present?
1- Recent AI developments are awe-inspiring and promise to change the world. But when?
2- Make a distinction between impressive 🍒 cherry-picked demos, and reliable use cases that are ready for the marketplace
3- Think of models as components of intelligent systems, not minds
4- Generative AI alone is only the tip of the iceberg
The current climate in AI is making some uncomfortable. Everyone is expecting as a sure thing "civilization-altering" impact (& 100x returns on investment) in the next 2-3 years. 6
What's next in computing after Moore's law? You can think about this in many ways. But, here is an analogy 7:
Some experts say that ChatGPT is the AI's iPhone moment. 8
It’s clear that given enough compute, the largest tech companies can match OpenAI's GPT-4. GPT-4 class intelligence will be available to anyone who can rent an H100 server.
Yesterday, China's DeepSeek V2 open-sourced a new model that is both cheaper to run than Meta's Llama 3 70B and better. Deepseek's model is markedly cheaper than any other competitive model. Even more interesting is the novel architecture DeepSeek has brought to market. They did not copy what Western firms did. ... at 1/5th the compute of Meta's Llama 3 70B. For those keeping track, DeepSeek V2 training required 1/20th the flops of GPT-4 while not being so far off in performance. Also the paper is probably the best one this year in terms of information and details shared.
Microsoft is attempting to move the majority of their inference volumes away from OpenAI’s models to their own models that they developed IP for directly. This includes the Copilot and Bing initiatives that are driving much of Microsoft’s AI story. The Microsoft Phi model team is well known for training small models with significant amounts of synthetic data from larger models. The latest Phi-3 model release has been seriously impressive. Another team at Microsoft, WizardLM, has created something even more amazing called "Evol-Instruct." ... Microsoft's first big effort at hitting GPT-4 class is currently happening with the MAI-1 ~500B parameter MOE model. It utilizes the Inflection pretraining team ...
Is Distribution And Integration King? With DeepSeek and Llama 3 405B coming to the open source, there is very little reason for enterprises to not host their own model. Zuckerberg’s strategy of using open-source models to slow down competitions commercial adoption and attract more talent is working wonders. Fine tuning is no longer a monumental task given Databricks ... One of OpenAI’s advantages is that they have been ahead in collecting usage data, but that is changing soon enough. This is because both Meta and Google have more direct access to the consumer. To serve up 3B people – you clearly need to have a small and efficient model to bring the cost of inference down. Either Meta has made the financial math work or it is prepared to invest heavily to execute a land grab in the consumer AI space.
... we don’t believe OpenAI is doomed, in fact this is all just window dressing practicing the bear argument in the leadup to the next generation model ...
Demos9 and examples in the form of tweets:
Day 1, 2022
2023
Mostly found in GitHub Gist:
A conversation I had with ChatGPT, inspired by a tweet from Michael Nielson.
You are Webby, a website creation assistant.
Hi, my code has two bugs and I’m not sure how to fix them. If you can help me, I’ll send you the code.
Lightly based on publicly announced ChatGPT variants and competitors Tweet.
Competitors:
I am providing code and resources in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code and resources is from me and not my employer.
In a Reddit thread "The problem with prompt engineering" where Gwern (author) claims to be the origin of the term prompt programing/prompt engineering. His argument is reasonable and well written. ↩
A key component of GPT-3.5 models are Books1 and Books2. Books1 - aka BookCorpus, a free books scraped from smashwords.com. Books2 - We know very little about what this is, people suspect it's libgen, but it's purely conjecture. Nonetheless, books3 is "all of bibliotik". ↩ ↩2
OpenAI just laid out the foundation for the next era of computing ↩
An interview by stratechery with NVIDIA CEO about AI's iPhone moment ↩
364 commits
1 commits
ChatGPT Universe is fleeting notes on ChatGPT, GPT, and large language models (LLMs)
372
365 commits
updated Sep 14, 2024
This tiny place of the Web stores a growing collection of interesting things about ChatGPT and GPT-3 (and beyond) from OpenAI.
ChatGPT was launched on Nov 2022. I want an all-in-one place to keep things about GPT and ChatGPT. So, I hand-curated this list with the help of others (acknowleged below), since early Dec 2022.
The collections are not limited to only the best resources, tools, examples, demos, hacks, apps, and usages of ChatGPT.
The following resources started off based on awesome-chatgpt lists12 but with my own modifications:
Model: The ChatGPT model family we are releasing today,
gpt-3.5-turbo, is the same model used in the ChatGPT product. It is priced at $0.002 per 1k tokens, which is 10x cheaper than our existing GPT-3.5 models.API: Traditionally, GPT models consume unstructured text, which is represented to the model as a sequence of “tokens.” ChatGPT models instead consume a sequence of messages together with metadata.
Example prompts.
golergka/advent-of-code-2022-with-chat-gpt - Solving Advent of Code 2022 with ChatGPT.
max-sixty/aoc-gpt - First place in Advent of Code leaderboard with GPT-3.
greshake/Alice - Giving ChatGPT access to a real terminal.
RomanHotsiy/commitgpt - Automatically generate commit messages using ChatGPT.
gpt-commit-summarizer - Generate Pull Request summaries and Git commit descriptions.
vrescobar/chatGPT-python-elm - A Git repository fully generated by ChatGPT.
gpt-game - An short game written in Elixir and LiveView using ChatGPT.
chatdb - ChatGPT-based database, wait... WHAT?
chat-gpt-ppt - Use ChatGPT to generate PPT automatically.
emailGPT - A quick and easy interface to generate emails with ChatGPT.
gptlang - An experiment to see if we can create a programming language in ChatGPT.
ChatRWKV - Like ChatGPT but powered by the RWKV (RNN-based) open language model. [HuggingFace Space: RWKV-4 (7B Instruct v2), code (their claim RNN with Transformer-level LLM performance is a lot better then I expected.)]
GraphGPT - Extrapolating knowledge graphs from unstructured text using GPT-3.
Doc Search - Explore documents (books, papers, legal docs) without limits. Converse with a book. Inspired by "Book Whisperer" idea (Tweet). Open source alternative to Filechat.io.
What if GPT had internal context on your business? (Tweet and video demo) - They build a chatbot that could use context from enterprise data to answer internal business queries. This project integrated LangChain (agent decides what tools to query once the chatbot receives a request) and GPT Index (load Snowflake DB). Interesting idea in knowledge management.
MetaAI's LLaMA 🦙
Trying out Flan-UL2 20B - Code walkthrough by Sam Witteveen. This shows how you can get it running on 1x A100 40GB GPU with the HuggingFace library and using 8-bit inference. Samples of prompting: CoT, zeroshot (logical reasoning, story writing, common sense reasoning, speech writing). Lastly, testing large (2048) token input. Bonus: don't have A100? You can use the HuggingFace Inference API for UL2.
metamorph - Self-editing GPT-4 application.
MiniGPT-4 - A research trying to replicate GPT-4 multi-modal abilities.
Llama2.c by Karpathy - Inference Llama 2 in one file of pure C. 👍
this is just a weekend project: I took nanoGPT, tuned it to implement the Llama-2 architecture instead of GPT-2, and the meat of it was writing the C inference engine in
run.c.Hat tip to llama.cpp for inspiring this project. I wanted something super minimal so I chose to hard-code the llama-2 architecture, stick to fp32, and just roll one inference file of pure C with no dependencies.
Less is more.
This commit make it possible to load and inference Meta's Llama 2 7B model now.
My fork - performance benchmarks, optimizations, and work-in-progress Zig port. I was porting this project to Rust but these forks beat me to it. The earliest Rust port I've seen is by @garrisonhess but no where found in the project's README.
Speculation: My hunch is telling me that Karpathy is working towards releasing (and open sourcing?) OpenAI model as weights. Hints: he left and went back to OpenAI, his Tweet
Worth noting that all of Llama2.c is quite generic to just Transformer language models in general. If/when OpenAI was to release models as weights (which I can neither confirm nor deny!) then most of the code here would be very relevant.
Lightly edited. Emphasis mine.
Other hints: his prior works including nanoGPT, Software 2.0, and recently micro-LLMs with Llama2.c
If you know, you know. 😆
llm.c by Karpathy - LLM training in simple, raw C/CUDA. (Plan: once this is in a bit more stable state, videos on building this in more detail and from scratch.) [Tweet]
2022
... Even with non-conversational search engines, we know that is common to place undue trust in the results: if the search system places something at the top of the list, we tend to believe it is a good or true or representative result and if it doesn’t find something, it is tempting to believe it does not exist.
2023
Microsoft and OpenAI Working on ChatGPT-Powered Bing in Challenge to Google
Some remarks on Large Language Models by Prof. Yoav Goldberg.
Why ChatGPT won’t replace search engines any time soon by Algolia.
Anthropic's Claude improves on ChatGPT but still suffers from limitations
Wolfram|Alpha as the Way to Bring Computational Knowledge Superpowers to ChatGPT
DeepMind's CEO Helped Take AI Mainstream. Now He's Urging Caution
DeepMind is also considering releasing its own chatbot, called Sparrow, for a "private beta" some time in 2023. (The delay is in order for DeepMind to work on reinforcement learning-based features that ChatGPT lacks, like citing its sources.)
General availability of Azure OpenAI Service expands access to large, advanced AI models with added enterprise benefits - ChatGPT is coming soon to the Azure OpenAI Service.
An important next step on Google's AI journey - Google soft launches Bard, a ChatGPT competitor to "trusted testers". Bard is new AI features in Google Search. Bard is an experimental conversational AI service, powered by LaMDA (Language Model for Dialogue Applications). Google promises to make this available more widely in the coming weeks. API will be available for developers to build on. Google have not address how it plans to provide attribution and/or citations for its answers, either from Bard or in search results.
Microsoft announces new Bing and Edge browser powered by upgraded ChatGPT AI
Man and machine: GPT for second brains - About author second-brain note-taking system — how to improve processes for learning and personal knowledge management (PKM).
China's Baidu Developing Its Own ChatGPT, Joining Latest Global AI Race - Ernie or, Enhanced Representation through Knowledge Integration (Ernie 3.0 article and paper) is an LLM. Baidu was planning to launch such a service in March. Alibaba and Tencent also join the ChatGPT rush.
In 2019, Baidu developed a deep-learning model known as Ernie, based on Google's breakthrough, which it has used to improve its search results, including to make them more relevant. The company has since developed dozens more Ernie models and extended their capabilities to include image and art generation, similar to those of OpenAI's Dall-E.
ChatGPT Is a Blurry JPEG of the Web - OpenAI’s chatbot offers paraphrases, whereas Google offers quotes. Which do we prefer?
I made ChatGPT and Bing AI have a conversation (and they are friends now)
Bing: "I will not harm you unless you harm me first" - A good roundup about Bing "Sydney" AI chatbot. The fascinating weirdness of it — multiple personalities depending on the social context (prompting). Entertaining?
It's increasingly looking like this may be one of the most hilariously inappropriate applications of AI that we've seen yet. What can we make of this all? I am finding this whole thing absolutely fascinating, and deeply, darkly amusing. I've been LOL at these examples all day.
Text is All You Need: Personhood appears to be simpler than we thought - Ignoring the balloons, the author guess we have our first significant, year-defining news of 2023 — the initial reactions of the Bing "Sydney" AI chatbot. This is a Copernican moment? A thought provoking essay. I think this is the first good "formal" take on the impact for our sense of selfhood resulting from the appearance of LLM based conversational systems like ChatGPT.
In brief, it appears that Sydney has somewhat different machinery under the hood than ChatGPT, and the transcripts suggests a personality that is about the same in terms of coherence, but a wild leap beyond in terms of charisma and colorfulness. Depending on how you push Sydney, it/they appears capable of playing everything from a mean manipulative teenager to a paranoid psychotic, to a stubborn and peremptory conversational martinet.
"Dave, you're making assumptions. Can you prove any of this?" I can, actually, since some submissions that required screenshots also included ChatGPT browser tabs, which helpfully included the initial text of the prompt. Apparently, it's not even something students feel they need to hide.
OpenAI has privately announced a new developer product called Foundry (Tweet), which enables customers to run OpenAI model inference at scale with dedicated capacity. (GPT-3.5 Turbo appears to be referring to the ChatGPT Turbo model)
Don't believe ChatGPT - we do NOT offer a "phone lookup" service
My class required AI. Here's what I've learned so far - Lessons learned from integrating ChatGPT into education. The takeaways: 1) Work produced by prompting with a co-editing approach (bouncing ideas back and forth with the chatbot) tends to end up with students doing the best work; 2) Students need to be taught how to write prompts effectively - it doesn't come naturally.
Emergent Deception and Emergent Optimization - Have you wonder why LLMs simply predicting the next word leads to planning abilities (human-like behavior, novels/histories)? This post discusses the concept of emergent deception and emergent optimization which are two strategies that can be used to achieve a goal. There's two principles for reasoning about future emergent capabilities: 1) capabilities that would lower training loss will likely emerge in the future. 2) as models get larger and are trained on more and better data, simple heuristics tend to get replaced by complex ones. Principle 1 means LLMs trained to predict words get lower loss if they can simulate planning abilities.
How to make LLMs say true things - TL;DR: The method is using "World Model", an embeddings database filled with "beliefs" (chunks of declarative statements) with a confidence percentage that's computed using Bayes Theorem.
Why China Didn't Invent ChatGPT - The NYT argues that excessive censorship, geopolitical tensions with the US, and attempts to control private sector companies have led to Chinese companies falling behind their US counterparts in AI.
China's First ChatGPT-Like Chatbot MOSS Released For Public Testing [Direct link to app]
For China, ChatGPT may be an advance but also an 'ethical problem' - China's science and tech minister says the chatbot has taken Chinese society by storm and has adopted measures on AI regarding ethics.
ChatGPT get-rich-quick schemes are coming for magazines, Amazon, and YouTube (2023)
Snapchat is releasing its own 'My AI' chatbot powered by ChatGPT
Meta's powerful AI language model LLaMA has leaked online — what happens now? - The transcript of Shawn Presser's interview for The Verge is more interesting.
I think it's very likely that this model release will be a huge milestone. The ability to run LLaMA on a single A100 GPU — which "most of us either have access to ... or know someone that can let us use one for a bit” — is a “huge leap.”
To be exact, you can run LLaMA-65B in int8 precision (bnb) on a single A100 80GB GPU.
Turns out, that code sucks. I really don't want to be too harsh on them, since it's easy to underestimate just how important it is to get the default settings exactly right. But their defaults were all screwed up. They didn't use "Top K". They used Top P, which I never got good results from (either identical to top k or slightly worse). Their default temperature was 0.8, which was way too high. And worst of all, they didn't have a repetition penalty -- so by default, this thing would just yammer on and on about exactly the same thing.
100% this! I learned my lesson too in my LLaMA fork. My sampler settings were not optimal. The yammering is obvious and I've seen it. But I don't know why I didn't fix the sampler repetition penalty earlier.
ChatGPT Explained: A Normie's Guide To How It Works - Even my grandparents can understand this. But nerd gonna nerd anyway :laughing:
What should you use ChatGPT for?
What is clear to me is that we are in a new paradigm for the way we navigate content, whether through this model or other ones that are released soon. Upon prompting, the new universe gives us results, but those results are more directional vibes than concrete answers. It is up to us to figure out how to direct them in ways that we want for the best results and navigate the noise.
Large language models are having their Stable Diffusion moment (simonwillison.net)
This all changed yesterday, thanks to the combination of Facebook’s LLaMA model and llama.cpp by Georgi Gerganov.
(1) Easy to run on my own hardware
(2) Open source enough that they can be tinkered with
(3) Large enough to be useful—ideally equivalent in capabilities to GPT-3
It's not the perfect moment. We've achieved 1 and 3 except 2. LLaMA is NOT actually open source (while the license for the code is GPL 3, the model weights are not). Truly open models really matter.
As GPT-4 chatter resumes, deep learning pioneer Yoshua Bengio says ChatGPT is a 'wake-up call' - The wake up call was GPT-3 and scaling laws in 2021. It's just the alarm clock got louder now.
ChatGPT's API is So Good and Cheap, It Makes Most Text Generating AI Obsolete
Confirmed: the new Bing runs on OpenAI’s GPT-4 - Bing Chat (Sydney) was GPT-4 all along.
Wikipedia - A good run down of GPT-4.
The Multi-modal, Multi-model, Multi-everything Future of AGI - GPT-4 recap.
Can GPT-4 Actually Write Code? - Testing GPT 4's code-writing capabilities with some actual real world problems.
Could you train a ChatGPT-beating model for $85,000 and run it in a browser?
Try Bard and share your feedback - Google starting to open access to Bard, an early experiment that lets you collaborate with generative AI. They're beginning with the U.S. and the U.K., and will expand to more countries and languages over time.
Google’s Bard lags behind GPT-4 and Claude in head-to-head comparison
NVIDIA Brings Generative AI to World's Enterprises With Cloud Services for Creating Large Language and Visual Models - NVIDIA AI Foundations is NVIDIA going beyond a pure hardware provider and into software supporting Generative AI with their offerings for every workload, from foundation model as a service (coming to enterprise, customized for your proprietary data) to multimodal from day 1.
GitHub Copilot X: The AI-powered developer experience - GitHub Copilot is evolving to bring chat and voice interfaces, support pull requests, answer questions on docs, and adopt OpenAI’s GPT-4 for a more personalized developer experience.
Cheating is All You Need by Steve Yegge, Sourcegraph.
There is something legendary and historic happening in software engineering, right now as we speak, and yet most of you don’t realize at all how big it is.
LLMs aren't just the biggest change since social, mobile, or cloud–they're the biggest thing since the WWW.
I mean, this stuff is unbelievably powerful. And yet I am persistently met with a mixture of disbelief and pearl-clutching.
... five times as productive. 😲
A Brief Mini-History of LLMs
The punchline, and it’s honestly one of the hardest things to explain, so I’m going the faith-based route today, is that all the winners in the AI space will have data moats. ... Why? Because the data moat is how you populate the context window ("cheat sheet").
LLMs aren’t some dumb fad, like crypto. Yes, crypto was a dumb fad. This is not that.
Google "We Have No Moat, And Neither Does OpenAI" - Leaked internal Google Document claims open source AI will outcompete Google and OpenAI.
Understanding GPT tokenizers by Simon Willison.
It is starting to get strange - Let's talk about ChatGPT with Code Interpreter & Microsoft Copilot.
Donald Knuth plays with ChatGPT - Knuth is a computer scientist. Known as the "father" of the analysis of algorithms.
Uncensored Models - Uncensoring WizardLM. Since there was work already done to uncensor Vicuna, I was able to rewrite their script so that it will work on the WizardLM dataset.
GPT-4 model architecture (Tweets) - Derived from the original source (blog post): GPT-4 architecture, infrastructure, Training Dataset, Costs, Vision, MoE
Llama 2: an incredible open LLM - The best summary of the Llama 2 paper.
Llama 2 - Every Resource You Need by Philipp Schmid.
Large language models, explained with a minimum of math and jargon - It seemed like a good explainer on how LLMs work. I don't know how to appreciate the last section that goes into a bit of philosophy and theories about how human learn. (the last section lacks evidence-based assertion)
So you want to build your own open source ChatGPT-style chatbot (hacks.mozilla.org)
How is LLaMa.cpp possible? (finbarr.ca) - Long before LLM going mainstream, everyone has been saying large models require a lot of expensive GPUs. Like the author, we want to prove them wrong. The writer of this post took their confusion and dove into the math surrounding inference requirements to understand the constraints we’re dealing with. Surprisingly, there's no magic here, only things beyond our understanding at first. Model compression or more specifically quantization makes it possible. There's no "free lunch" though — the cost of quantized model is essentially, you lose some accuracy. Meaning, for very large model sizes, the differences might be negligible. Curious? This semi-related post did a comparison between different quantized Transformers perplexities/accuracies.
Beating GPT-4 on HumanEval with a Fine-Tuned CodeLlama-34B (www.phind.com) - Good progress and no big surprise. I've realized that benchmarks like these for models are prone to be poor metrics for measuring how well the models perform in actual real-world work. That's been my experience with the open models.
2024
We need a benchmarks or some sort of independent and human evaluations of real world tasks.
According to Gwern:
A new programming paradigm? You interact with it, expressing any task in terms of natural language descriptions, requests, and examples, tweaking the prompt until it "understands" & it meta-learns the new task. This is a rather different way of using a model, and it's better to think of it as a new kind of programming, prompt programming, where the prompt is now a coding language which programs GPT-3 to do new things.
"Prompting" as an engineering discipline is not here to stay. It's a temporary crutch on the way to natural language interfaces. ChatGPT solves a big portion of the prompting problem. Adding engineering to a term to amplify its perceived importance or difficulty might be unnecessary. We could probably call it "prompt testing/hacking" and not lose any of the meaning.
Related articles:
Why "Prompt Engineering" and "Generative AI" are overhyped
Related Tweets:
Prompt engineering is dead, long live dialogue engineering. — VP Product, OpenAI
Wanted: Prompt engineer. Minimum 10 years prompt engineering experience. #hiring #joke
Why does ChatGPT work so well? Is it "just scaling up GPT-3" under the hood? In this 🧵, let's discuss the "Instruct" paradigm, its deep technical insights, and a big implication: "prompt engineering" as we know it may likely disappear soon. Source: https://archive.is/dqHI8
Apparently in 2023, prompt programming is not dead. The hottest new programming language is English ~ Karpathy :))
Simon Willison published In defense of prompt engineering as a counter to the "prompt engineering will be made obsolete as AIs get better" argument that he keep seeing.
The newspaper is saying AI whisperer ('Prompt engineers') is tech's hottest new job (2023).
The best prompt engineering guide for developers working with Large Language Models like GPT-4, ChatGPT, and open models like LLaMA would be a combination of multiple resources. Here are some learning resources, tools, libraries, and frameworks to help you learn and master prompt engineering:
By using these resources, you can gain a solid understanding of prompt engineering and develop the skills necessary to work effectively with LLMs.
(* Prompt engineering term was renamed to prompting. The term is overloaded and might be unnecessary.)
More: YouTube videos from curated.tivul.com (I didn't curate this, so quality is not guaranteed)
AI-native applications development. ChatGPT integration. Next generation AI applications. "App Store" layer for language models (including HuggingFace "App Store").
LLM Powered Autonomous Agents (blog post) by Lilian Weng, 2023.
The potentiality of LLM extends beyond generating well-written copies, stories, essays and programs; it can be framed as a powerful general problem solver.
In a LLM-powered autonomous agent system, LLM functions as the agent's brain, complemented by several key components: planning, memory, and tools.
Challenges: long-term planning and task decomposition, reliability of natural language interface.
Smol Developer - Embed a developer agent in your own app.
Retrieval systems to access personal or organizational information sources. Embeddings. Database and data store designed for machine learning models and NLP.
Vector databases for indexing and searching documents
We want a ChatGPT alternative like Stable Diffusion.
Frustrated by all the gatekeeping around AI? Still waiting or cannot get access to LLaMA?
Goals
Ultimate goal: self-hosted version of ChatGPT.
Lessons
Takeaways from EleutherAI one year retro (2021):
FLAN-T5 XXL aka. ChatGPT@Home is a public model that has undergone instruction finetuning. XXL is a 11B model. It is currently the most comparable model against ChatGPT (InstructGPT models are initialized from GPT-3.x series (model card)). There are successful attempts deploying FLAN-T5 on GPU with 24 GB RAM with bitsandbytes-Int8 inference for Hugging Face models. You can run the model easily on a single machine, without performance degradation. This could be a game changer in enabling people outside of big tech companies being able to use these LLMs. Efforts are already underway to create a better FLAN-T5. The community (i.e., LAION) are working on FlanT5-Atlas architecture and a collection of prompted/instructions datasets.
Open-Assistant - Open-source ChatGPT replication by LAION, Yannic Kilcher et al. This project is meant to give everyone access to a great chat based large language model. (Open Assistant Live Coding with Yannic Kilcher (video)) High-level plans:
Phase 1: Prompt collection for supervised finetuning (SFT) and to get the prompts for model generated completions/answers.
Phase 2: Human feedback (e.g. ranking) of multiple outputs generated by the model. Example five model outputs are shown and the user should rank them from best to worst.
Phase 3: Optimization with RLHF which we plan to do via TRLX. And then the we iterate with this new model again over phase 2 and phase 3 hopefully multiple times.
Models will be trained on Summit supercomputer (~6 million NVIDIA V100 hrs per year) [source]
More info, see the LAION LLM proposal (Google Doc) above.
Progress:
Feb 2023: Joi-20B-instruct is a 20B model fine-tuned on a diverse set of instruction datasets and based on NeoX-20B.
Unofficial: This is an early pre-release model (part of development of MVP, phase 1), not directly OpenAssistant (OA) models. They are experiments by the ML team to learn what data, foundation model, methods will work well for OA. As is stated in the website's FAQ, no demo yet. This is for developers to test out early development version of instruction tuning for the model. Maybe first OA models will be derived from these. They have been training good models on a rolling basis as new datasets get completed. There are a variety of model sizes from 1.4B to 20B params available on the HF Hub.
Chatty-LMS build by HuggingFace H4 team - A UI for testing Joi-20B-instruct model. You can chat with it. The agent will reply as Joi (the bot nickname).
Example of code snippet to run the model on your own GPUs: https://gist.github.com/cedrickchee/236e53ed2dca95bd96e5baa35cdd7be2
Mar 2023: They're currently processing the data collected from contributions. The data has over 100k messages, meaning millions of contributions. The quality of the data is beyond what they've ever expected — most of contributions are super high quality. Now, they are exporting the v1 of the dataset. As said, they are currently training the initial batch of models.
11 Mar 2023: The Open Instruction Generalist (OIG) dataset will be releasing. OIG is a large open source instruction dataset that currently contains ~43M instructions.
OIG is one of many chatbot datasets that LAION, along with its volunteers, Ontocord, Together and other members of the open source community, will be releasing and is intended to create equal access to chatbot technology. Everyone is welcome to use the dataset and contribute improvements to it.
The OIG dataset is related to LAION’s Open Assistant project.
9 Mar 2023: Open-Assistant SFT-1 12B Model - Early prototype of English supervised-fine-tuning (SFT) model of the Open-Assistant project. It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations of assistant conversations collected before March 7, 2023. Although the model is only a development milestone, it's usable for a few creative tasks. Try: HuggingFace Space (easy and fast, unoffial chatbot UI), Google Collab. Here's a guide on how to run the model locally on your own computer with a GPU.
23 Mar 2023: This project is starting to shape up nicely. Model is coming along.
/r/ask_open_assistant. Code15 Apr 2023: OpenAssistant is officially out! The release includes models, datasets, and a chat interface. [Announcement video, Try, models]
Note: Please see the GitHub repo for up-to-date info.
News (2023-01-13): They replicated OpenAI's Learning to Summarize paper using trlX library. [report]
lucidrains/PaLM-rlhf-pytorch - (WIP) Implementation of RLHF on top of the PaLM architecture. Basically ChatGPT but with PaLM. The developer plan to add retrieval functionality too, à la RETRO. [Tweet]
2023: Something funny in their FAQ:
There is no trained model. This is just the ship and overall map. We still need millions of dollars of compute + data to sail to the correct point in high dimensional parameter space. Even then, you need professional sailors (like Robin Rombach of Stable Diffusion fame) to actually guide the ship through turbulent times to that point.
News (2022-12-31): There's now an open source alternative to ChatGPT, but good luck running it - My comments: No it hasn't. This is NOT an actual trained model (no weights) you can use. This is just code for training a ChatGPT-like model. Furthermore, the training data (enwik8) is small.
CarperAI's large scale RLHF-aligned model (TRLX) train with LAION's data is coming out early next year. (Source: Tweet)
allenai/RL4LMs - RL for language models (RL4LMs) by Allen AI. It's a modular RL library to fine-tune language models to human preferences.
GPT-JT by Together Research Computer is an example that distributes model training over geo-distributed of diverse computers (and GPUs). GPT-JT (6B) is a variant forked off EleutherAI's GPT-J, and performs exceptionally well on text classification and other tasks. On classification benchmarks such as RAFT, it comes close to state-of-the-art models that are much larger (e.g., InstructGPT davinci v2)! [Paper: Decentralized Training of Foundation Models in Heterogeneous Environments (2022)]
LEAM (Large European AI Models) - The EU planning to fund the development of a large-scale ChatGPT-like model. [website, project documents (English, PDF), concept paper (German, PDF)]
/r/AiCrowdFund - A place just started (2023) where people can find a way to crowd fund (with GPUs) a large AI. I'm not sure whether they've seen Petals where you can run LLMs at home, BitTorrent‑style (federated learning?). It seems to be headed in that direction.
Open source solution replicates ChatGPT training process - They presents an open-source low-cost ChatGPT equivalent implementation process, including:
I got the impression that the point of the article was to plug their Colossal-AI framework and product, a collection of parallel components, tools, and hardwares for large models. Frankly, their numbers do look suspicious to me, unless I've missed something. What makes ChatGPT interesting (over GPT-3) is the RLHF process. They do claim to replicate RLHF process completely. But, the article touch lightly about their RLHF implementation. They train RLHF using a small awesome-chatgpt-prompts as example dataset. Their RLHF implementation details are hidden here: https://github.com/hpcaitech/ColossalAI/blob/main/applications/ChatGPT. Lack of demo doesn't inspire too much confidence though.
FlexGen - Running LLMs like OPT-175B/GPT-3 on a single GPU (e.g., a 16GB T4 or a 24GB RTX3090 gaming card). Key features: 1) up to 100x faster than other offloading systems. 2) Compress both the parameters and attention cache of models down to 4 bits with negligible accuracy loss. 3) Distributed pipeline parallelism. They also provide a Python script and instructions that you can run a chatbot with OPT models. This should solve the challenges of high computational and memory requirements of LLM inference. The chatbot they build with FlexGen and OPT models is not instruction-tuned (RLHF). So this chatbot is not ChatGPT-like though. [High-throughput Generative Inference of LLMs with a Single GPU (paper), Stanford et al., 2023]
Reviews (from Tweets):
ChatLLaMA by NebulyAI - LLaMA-based ChatGPT-style training process implementation. The code represents the algorithmic implementation for RLHF training process that leverages LLaMA-based architectures and does not contain the model weights. This is NOT a ChatGPT-like product. Their RLHF implementation (actor critic trainer, actor-reward model) was inspired by lucidrains's PaLM-rlhf-pytorch implementation. You can also generate your own prompt dataset using LangChain's agents and prompt templates. (They have removed their misleading "15x faster training than ChatGPT" claim. We don't know how fast ChatGPT trained. Many people debate the performance of that repo (based on what?). Another evidence of people talking about things they don't understand about in deep learning. We should stay grounded.)
Fine-tuning 20B LLMs with RLHF on a 24GB consumer GPU by HuggingFace - It is now possible using the integration of TRL with PEFT. The blog post explains how they achieve this step by step. The base model is gpt-neox (I was hoping the show fine-tuning LLaMA. I think they can't because of LLaMA licensing restrictions.)
OpenChatKit by Together Compute - Build your own ChatGPT. A powerful, open-source base to create chatbots for various applications. Try. Much more than a model release. They are releasing a set of tools and processes for ongoing improvement. OpenChatKit includes 4 key components:
Alpaca: A Strong Open-Source Instruction-Following Model by Stanford - Alpaca is a fine-tuned version of LLaMA that can respond to instructions like ChatGPT. Simon Willison wrote about Alpaca, and the acceleration of on-device large language model development. The team at Stanford just released the Alpaca training code for fine-tuning LLaMA with Hugging Face's transformers library. Also, the PR implementing LLaMA models support in Hugging Face was approved yesterday.
A list of open alternatives to ChatGPT, group by model and tags (B: bare, M: mildly bare, F: full, C: complicated).
Hello Dolly: Democratizing the magic of ChatGPT with open models [Code: fine-tuning GPT-J 6B model on the Alpaca dataset] - My thoughts: LLMs could possibly be the first technology that rapidly transforms from a groundbreaking innovation to a widely adopted standard. Within two years, it is anticipated to be an integrated feature in all applications and tools, rather than a distinguishing factor.
See cedrickchee/awesome-transformer-nlp for large language models research.
Use ChatGPT anywhere.
/chatgpt to chat with ChatGPTBot.Web applications.
Desktop applications.
Open-source models are faster, more customizable, more private, and pound-for-pound more capable. 5
Self-hosted LLMs are the way forward for enterprise. Run Large Language Models locally on your devices.
2023 trends
llama2.c ➡️ micro-LLMs (<10B params?) - hackable and efficient, but not at the cost of simplicity, readability, portability.
llama.cpp ➡️ inference at the edge, deployment efficiency.
Growing interest in local, private micro-LLMs and deploying them in laptops, phones, MCUs, etc.
AI alignment and AI interpretability.
AI for the Next Era - OpenAI's Sam Altman on the New Frontiers of AI.
My comments: Reading this after the ChatGPT launch, mostly all the things that Sam is referring to in the interview contains reminiscences about predictions on AI and development from Ray Kurzweil.
Google won't launch ChatGPT rival because of 'reputational risk'
AI Alignment Forum is a single online hub for researchers to discuss all ideas related to ensuring that transformatively powerful AIs are aligned with human values. Discussion ranges from technical models of agency to the strategic landscape, and everything in between.
The Expanding Dark Forest and Generative AI by Maggie Appleton - Proving you're a human on a web flooded with generative AI content.
How should AI systems behave, and who should decide? by OpenAI.
Planning for AGI and beyond by OpenAI (2023) - TL;DR:
If you care about how AGI will impact us all, you should read this.
Software Complexity Is Why AI Won't Replace Software Engineers
Copyright Registration Guidance: Works Containing Material Generated by AI
GPT-4 and the Uncharted Territories of Language by fast.ai - Language is a source of limitation and liberation. GPT-4 pushes this idea to the extreme by giving us access to unlimited language.
I couldn’t keep working. I had to leave the office and go for a walk. Is software engineering basically a solved problem now? Did OpenAI just make the last application? This all sounds hyperbolic and melodramatic when I write it out, but I’m not the only one who felt something like this. Twitter showed me I wasn't alone: "Existential crisis. Did OpenAI just finish software? What's there left to do but clean-up and sweep?"
Is Avoiding Extinction from AI Really an Urgent Priority? by Seth Lazar, Jeremy Howard, and Arvind Narayanan - The history of technology suggests that the greatest risks come not from the tech, but from the people who control it.
AI Safety and the Age of Dislightenment by Jeremy Howard, fast.ai - Model licensing & surveillance will likely be counterproductive by concentrating power in unsustainable ways.
The Leverage of LLMs for Individuals
it gives me the courage to dream and attempt things beyond my current abilities.
AI Index Report 2024 by Institute for Human-Centered AI, Stanford University, 2024.
ChatGPT is incredibly limited, but good enough at some things to create a misleading impression of greatness.
It's a mistake to be relying on it for anything important right now. It's a preview of progress; we have lots of work to do on robustness and truthfulness.
fun creative inspiration; great! reliance for factual queries; not such a good idea. — Sam Altman, OpenAI
John Carmack answering questions about Computer Science (Software Engineering) career from a concerned student:
Build full "product skills" and use the best tools for the job, which today might be hand coding, but later might be AI guiding you, you will probably be fine — Tweet
I’m hearing chatter of PhD students not knowing what to work on.
My take: as LLMs are deployed IRL, the importance of studying how to use them will increase.
Some good directions IMO (no training): prompting, evals, LM interfaces, safety, understanding LMs, emergence
GPT-4 has been out for 72 hours, and it could change the world! Here are some amazing and important things it can't do (yet):
- Solve global warming, 2. Cure cancer or infectious diseases, 3. Alleviate the mental health crisis, 4. Close the information and education gap, 5. End war and strife, and many more.
Stop saying: AI will replace humans.
Start saying: humans who know how to use AI at work will replace those who don’t.
— Jim Fan
The @HuggingFace GPT detector works very well on ChatGPT-created text. I ran 5 student essays and 5 ChatGPT essays for the same prompt through it, and it was correct every time with >99.9% confidence. — @cfiesler
General technology for enabling AI capabilities with LLMs and generative AI models.
GPT-3/LLMs' Achilles heel is short context length - how many "in-context" examples they can consume to learn a new task. Enter "Structured Prompting": scale your examples from dozens => 1,000+ — @mathemagic1an
Software 2.0? Software 3.0? Generative AI?
(Reflections on how best to think of the current state of software engineering, AI products, and pitfalls people tend to make with new tech.)
It's very rare to see a new building block emerge in computing. Large AI models like ChatGPT represent a fundamentally new building block. By integrating large models into software, developers can expose functionality that wouldn't be possible otherwise. This may be one of the biggest changes in software we've ever seen — a new type of software.
Using LLMs in isolation is often not enough to create a powerful app — the real power comes when you are able to combine them with other sources of knowledge or computation.
Is Software 3.0 silly? worth the hype?
I don't know. I think of "Software 3.0" as:
You say investment into generative AI companies is way too exuberant right now? What's the big deal with Generative AI? Is it the future or the present?
1- Recent AI developments are awe-inspiring and promise to change the world. But when?
2- Make a distinction between impressive 🍒 cherry-picked demos, and reliable use cases that are ready for the marketplace
3- Think of models as components of intelligent systems, not minds
4- Generative AI alone is only the tip of the iceberg
The current climate in AI is making some uncomfortable. Everyone is expecting as a sure thing "civilization-altering" impact (& 100x returns on investment) in the next 2-3 years. 6
What's next in computing after Moore's law? You can think about this in many ways. But, here is an analogy 7:
Some experts say that ChatGPT is the AI's iPhone moment. 8
It’s clear that given enough compute, the largest tech companies can match OpenAI's GPT-4. GPT-4 class intelligence will be available to anyone who can rent an H100 server.
Yesterday, China's DeepSeek V2 open-sourced a new model that is both cheaper to run than Meta's Llama 3 70B and better. Deepseek's model is markedly cheaper than any other competitive model. Even more interesting is the novel architecture DeepSeek has brought to market. They did not copy what Western firms did. ... at 1/5th the compute of Meta's Llama 3 70B. For those keeping track, DeepSeek V2 training required 1/20th the flops of GPT-4 while not being so far off in performance. Also the paper is probably the best one this year in terms of information and details shared.
Microsoft is attempting to move the majority of their inference volumes away from OpenAI’s models to their own models that they developed IP for directly. This includes the Copilot and Bing initiatives that are driving much of Microsoft’s AI story. The Microsoft Phi model team is well known for training small models with significant amounts of synthetic data from larger models. The latest Phi-3 model release has been seriously impressive. Another team at Microsoft, WizardLM, has created something even more amazing called "Evol-Instruct." ... Microsoft's first big effort at hitting GPT-4 class is currently happening with the MAI-1 ~500B parameter MOE model. It utilizes the Inflection pretraining team ...
Is Distribution And Integration King? With DeepSeek and Llama 3 405B coming to the open source, there is very little reason for enterprises to not host their own model. Zuckerberg’s strategy of using open-source models to slow down competitions commercial adoption and attract more talent is working wonders. Fine tuning is no longer a monumental task given Databricks ... One of OpenAI’s advantages is that they have been ahead in collecting usage data, but that is changing soon enough. This is because both Meta and Google have more direct access to the consumer. To serve up 3B people – you clearly need to have a small and efficient model to bring the cost of inference down. Either Meta has made the financial math work or it is prepared to invest heavily to execute a land grab in the consumer AI space.
... we don’t believe OpenAI is doomed, in fact this is all just window dressing practicing the bear argument in the leadup to the next generation model ...
Demos9 and examples in the form of tweets:
Day 1, 2022
2023
Mostly found in GitHub Gist:
A conversation I had with ChatGPT, inspired by a tweet from Michael Nielson.
You are Webby, a website creation assistant.
Hi, my code has two bugs and I’m not sure how to fix them. If you can help me, I’ll send you the code.
Lightly based on publicly announced ChatGPT variants and competitors Tweet.
Competitors:
I am providing code and resources in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code and resources is from me and not my employer.
In a Reddit thread "The problem with prompt engineering" where Gwern (author) claims to be the origin of the term prompt programing/prompt engineering. His argument is reasonable and well written. ↩
A key component of GPT-3.5 models are Books1 and Books2. Books1 - aka BookCorpus, a free books scraped from smashwords.com. Books2 - We know very little about what this is, people suspect it's libgen, but it's purely conjecture. Nonetheless, books3 is "all of bibliotik". ↩ ↩2
OpenAI just laid out the foundation for the next era of computing ↩
An interview by stratechery with NVIDIA CEO about AI's iPhone moment ↩
364 commits
1 commits