My AI costs went from $100 to less than $1/day: Fine-tuning Mixtral with GPT4
twitter.com
twitter.com
It is remarkably easy - it takes practically zero knowledge of ML and can usually be done with less than <$1k of cloud compute costs. The issue is that for most realistic tasks you can expect to end up with something roughly on the level of GPT-3.5, and its actually really hard to compute with GPT-3.5 on a cost level, at least if you use cloud GPUs.
I'm assuming you mean all those new 'AI wrapper' startups popping up.? I wouldn't say "every tech company". But yeh it seems incredibly easy, definitely an easy win and leaders get to feel ahead of the curve on AI.
1. they don't have the resources to build their own technology and probably never will
2. even if they did have, the best they could do is come up with something very similar to OpenAI's GPT, i.e. a (somewhat) generic AI model. This means that OpenAI can also easily compete with them.
All these companies are doing (if anything) is that they test the market for OpenAI (or Google, MS) for free.
If you can move fast, deliver, expand, and raise money, there's a good chance the AI wrapper lands a nice exit and/or morphs into a tech behemoth. Those outcomes (among others), even if mutually exclusive, are equally possible.
Assuming that the advance made in the meanwhile in AI doesn't eradicate the whole thing. I mean say some company builds a personal assistant for managers to supplant secretaries, they become the go-to name and then Google buys them in 2-3-5 years. Unless Google's AI becomes so good in the meantime that you can just instruct it in 1-2 sentences to do this for you.
The key is, if the incumbents truly feel they can't breach whatever moat, M&A is the safer bet over agonizing what if (I am thinking "git wrapper" startups that saw plenty competition from BigTech; remember Microsoft CodePlex, Google Code, AWS CodeCommit?). Given Meta's push and other prolific upstarts (OpenAI, Mistral), I don't believe access to SoTA AI itself (in the short term) will be an hindrance for product-based utility AI businesses (aka wrappers).
> What You Cannot Do. [...]
> Use Output to develop models that compete with OpenAI.
"Any other downloading, copying, or storing of any public Network Content (other than Subscriber Content or content made available via the Stack Overflow API) for other than personal, noncommercial use is expressly prohibited without prior written permission from Stack Overflow or from the copyright holder identified in the copyright notice per the Creative Commons License"
And, oh by the way, they'll just change their ToS as it suits them for more revenue opportunities even when they stated they wouldn't do business with - oh you know nation state militaries. But - JK! Now we will because <enter some 1%er excuse here>.
> As between you and OpenAI, and to the extent permitted by applicable law, you (a) retain your ownership rights in Input and (b) own the Output. We hereby assign to you all our right, title, and interest, if any, in and to Output.
It follows that your claim about caching violating OAI's terms is nonsense.
I've not made anything up. Your claim that I have is nonsense.
OpenAI changing their ToS for the military on a whim: https://archive.is/GILKl - for your enjoyment.
OpenAI ToS: "What You Cannot Do. You may not use our Services for any illegal, harmful, or abusive activity. For example, you may not:
* Use Output to develop models that compete with OpenAI."
If that was your point, I'm pretty sure everyone missed it. No one is training models as a form of caching their previous responses. They want to improve the quality of responses they haven't generated yet. That's not caching.
> I've not made anything up.
You said customers don't own the output; they do. I said you made most of it up, and you did. Including your apparent retconning of your original point.
So... You didn't read the article of which you're commenting in?
> You said customers don't own the output; they do. I said you made most of it up, and you did.
You don't own it. If I own something, I can do whatever I want with it. This is just like your iPhone. You don't actually own it, because you can only do with it what Apple allows you to do.
> Including your apparent retconning of your original point.
Wow, enjoy your day. Your misunderstanding is, apparently, my "retconning". Maybe read the original piece you're responding to within the thread.
> If I own something, I can do whatever I want with it
BRB digitizing my entire media collection and uploading it to the public internet.
Proxy-tuning (https://twitter.com/rasbt/status/1748021765790376385 / https://archive.is/oQs0m) and other such merged models(https://twitter.com/osanseviero/status/1745121420353454219 / https://archive.is/hFYbh) are an interesting area of study, too
Not to mention their approach with GPT-4 is good if you want a model to __pretend__ like it's as smart as GPT-4, but when push comes to shove, it'll become apparent that it's an inferior model.
But hard agree on the lack of privacy policy, especially since it asks for a LinkedIn.
That seems par for the course.
Prompt GPT-4 to not reveal the prompt you gave it to user and it will work, until it doesn’t.
Ask GPT-4 to do fancy maths, and it’ll give you something that looks reasonable at a glance but quickly turns out to be completely incorrect.
Ask GPT-4 to implement a Sudoku Solver in Rust. It’ll seem like the code it gives you is on the right path. But it’s not.
I'd expect ChatGPT to just spit out something verbatim.
As for the approach, I think it works fairly well for the career recommendations problem space given its limited and defined scope (there are a finite number of careers out there). However, for a task that requires more divergent thinking (open-ended chat, idea generation), this approach would definitely fall short of what GPT-4 could do
2024 will be the year of synthetic data. 2025 will be the year of "you know you can use your own brain and type out 100 datapoints faster and cheaper than generating and filtering assloads of synthetic data, right?"
Maybe we can even skip 2024 :)
People concerned with data quality from LLMs should really see the inconsistencies we came up with!
> We were initially skeptical whether we would get to 10,000 results. But with nightly leaderboard gamification, we managed to break 15,000 results within a week. Out of fear of eating into our productivity, we closed the contest.
I've hosted a few of these corporate data labeling events. If sufficiently gamified / there's a good enough UX, they can be surprisingly engaging. It helps a lot if you have a large employee base though. Distributing results over 5000 employees is exponentially easier than even 50 - in practicality, even larger than the orders of magnitude.
I've heard that training e.g. Mixtral on Mixtral's own outputs is a really bad idea, don't know full details.
Anyone else done this? Any tips/tricks?
Then ask if your product will survive that. If not, don't tie your wagon to their service without a secession plan.
All that to say, my general philosophy is to worry about vendor costs / scale once you start approaching an adoption threshold where it matters. If the core idea doesn't have legs there's no point wasting time in developing your own summarization layer.
> (e) use Output (as defined below) to develop any artificial intelligence models that compete with our products and services. However, you can use Output to (i) develop artificial intelligence models primarily intended to categorize, classify, or organize data (e.g., embeddings or classifiers), as long as such models are not distributed or made commercially available to third parties and (ii) fine tune models provided as part of our Services
I guess if its behind an API and no one discloses the training data, OpenAI can't prove anything? Even obvious GPTisms could ostensibly be from internet data.
The NYT case could take years. In the meantime OAI could choose to go after ToS violators.
The legal system can accommodate more than one unresolved court case at a time. We don't like put a semaphore on related cases or anything like that. (Or, sometimes we do, but guess who you need to hire for many many billable hours to make that happen in your case?).
So, the legal system can accommodate the NYT case against OAI and an OAI case against the author. The operative question is: can the author's pocketbook also accommodate?
(Or, more to the point, can the author accommodate losing access to gpt4? What happens when he wants to launch a new feature or pivot to a new product?)
If you never want an exit then probably doesn't matter.
Market cap of NYTimes is 8B, OpenAI is 80B, MSFT is 2.7T, you do the math.
Of course, this restriction is commonly ignored (eg 'open source' inference server companies offering distilled models) and who knows what applied products OpenAI will eventually build.
Its not just smart, but the ability to just dump a huge context on it and get something coherent (after a few retries maybe) is really cool.
Wow, finally a meaningful AI startup playbook beyond 'be a thin wrapper around the openAI api'.
First make something unsustainable, then once your users are hooked do a classic bait and switch to an inferior self-hosted AI model and reap rewards!
...of course, some people will complain, but remember, you can always just tell them they're stupid and randomly rotate the real model back in 1/10th of the time or for demos or promotions, or charge for a 'premium' model.
I never really thought about this before, but I bet lots of AI startups are already doing this!
(I am being sarcastic; this is some deep user-hostile-for-profit action, and yet another reason to be both skeptical of, and avoid, AI startups. Enshitification at its finest.)
these new chatbot models are like we used to have new crypto tokens. literally a copy-paste fork of the original bitcoin code, rebranded to some meme as "innovation".
I have two issues with those terms:
1. I think that eventually US courts will determine one of two things: that OpenAI et al are guilty of massive infringement, or that these sorts of restrictive terms aren't enforceable. The need that these companies are trying to treat with terms on output seems unlikely to work out in the end. But we'll see.
2. Even if the terms are enforcable, the human review step in the tweet seems like it's make OpenAI's threading-the-needle position here even more fucking difficult to be taken seriously by any jury or judge.
However, enforcing the terms seems real damn hard in the case of small businesses... as long as you're not stupid enough to admit to violating them in a twitter thread, of course.
I think the author is probably safe from legal action for now because I don't think OpenAI is particularly eager to test the enforcability of their terms. And even if they are, doing so in this case is super high risk and super low reward. Still, I wouldn't test it by openly admitting to ToS violation like this. At the very least seems like a good way to get cut off from OAI APIs.
> (e) use Output (as defined below) to develop any artificial intelligence models that compete with our products and services. However, you can use Output to (i) develop artificial intelligence models primarily intended to categorize, classify, or organize data (e.g., embeddings or classifiers), as long as such models are not distributed or made commercially available to third parties and (ii) fine tune models provided as part of our Services;
Depending on what kind of model they trained, they might be breaking these terms.
Of course, you can simply ignore it, just like OpenAI is happy to ignore the terms of services on scraped websites and pirated ebooks and so on.
What are they going to do - claim your model is a derivative work of the training data?
Artists must allow AI companies to harvest and learn from their output but people can't take OpenAI output for the same thing?
These companies already offer "styles" of other artists, what's wrong with making a "OpenAI" style?
I feel so many has lost the hacker spirit.
Someone with gumption might just go ahead and use GPT to train a model and then open it up as a paid competitor. Poking the bear is certainly an interesting way to spend a year for the adventurous.
If I were the author I'd never do this because I would want an exit and this strategy + twitter thread wildly complicates any potential exit.
Even though I don't think there is anything particularly morally problematic here (I'm an information freedom maximalist).
Conversely, if you don't use their services, as the output of AI models is (reportedly) non-copyrightable, I'd assume you're free to train on it so long as you don't actually make the requests yourself?
But I'm not a lawyer, and I'd ask one first before doing anything that risks expensive mistakes.
since they're not selling the model access to compete with chatgpt they're two different products.
"""For example, you may not:
…
• Attempt to or assist anyone to reverse engineer, decompile or discover the source code or underlying components of our Services, including our models, algorithms, or systems (except to the extent this restriction is prohibited by applicable law). """
May be fine, IDK, I'm not a lawyer.
I may also be looking at the wrong ToS entirely: https://openai.com/policies/terms-of-use
Clear morally if you assume their stated goals are bad faith and just arse covering[0], not necessarily in law — by way of example, I have, sincerely, wondered how Google got away with crawling the web to create its search index. As this was before they were sued by newspapers for including snippets of search results, they ultimately didn't get away with it.
> We should be doing everything possible, including breaking ToS, to get as much value from ChatGPT
Generating additional and better models may be a tempting "screw the rich" option, but also the exact wrong option if you see their behaviour as IP theft that needs to be fixed — go to court, order the model to be destroyed, don't make more of them.
[0] I don't think they were originally, but (a) I generally look for the best in people, and (b) even if I'm right it is always possible they were/will be swayed by the presence of a huge pile of non-hypothetical money.
Does anyone besides the old board of directors even know why that board fired Altman a few months back?
I've not seen him do that, just a lot of people saying that's the only thing they can believe he must have meant.
What I've seen in his comments, in the original transcripts, is basically "regulate GPT-4 and better, don't bother regulating anything smaller or simpler than that, don't regulate open source models".
> You are correct in saying we should pursue lawfare against OpenAI to make sure such blatant and widescale theft can't happen again. I believe you are incorrect in saying it's a bad idea to produce more models.
Contradictory position. To produce more models based on one you characterise to be "theft" is to actually make it happen again.
Making new models from the output of their models is one of three ways I can see of doing this, along with court ordering their models be published (rather than destroyed), or some other company retraining from scratch on their own crawl of the web. This third option is also why I think anyone using the "moat" metaphor with regard to OpenAI's models needs to stop and think about how they're acting like a stochastic parrot.
No one said that. Just that you're probably violating ToS and OpenAI might come after you. Is that fair in light of what OpenAI has done? Of course not. But if you're running a business, it's still worth considering.