Joined May 2019
78 Photos and videos
Made With ML retweeted
Excited to share our end-to-end LLM workflows guide that we’ve used to help our industry customers fine-tune and serve OSS LLMs that outperform closed-source models in quality, performance and cost. anyscale.com/blog/end-to-end… 1/🧵
1
45
237
20,142
Made With ML retweeted
An AI-generated clone of HN built with @nextjs App Router ◆ Uses PPR and streaming Node.js SSR ◆ Fully dynamic, fresh data from Postgres ◆ All the UIs bootstrapped with @v0 ◆ Content via @mistralai 8x7B and @anyscalecompute Tools What I've learned 🧵 next-ai-news.vercel.app/
30
104
895
285,651
Made With ML retweeted
Replying to @rauchg
Glad you're finding it useful! Check out our accompanying blog post and the evaluation experiments we ran comparing across a suite of open-source and proprietary LLMs: anyscale.com/blog/anyscale-e…
7
31
3,640
Made With ML retweeted
24 Dec 2023
Very impressed with @anyscalecompute's endpoints, which support tools / function calling. 2LOC to play with Mixtral as a replacement for GPT 🤯
10
27
385
85,323
Made With ML retweeted
It's been nice to see small jumps in output quality in our RAG applications from chunking experiments, contextual preprocessing, prompt engineering, fine-tuned embeddings, lexical search, reranking, etc. but we just added Mixtral-8x7B-Instruct to the mix and we're seeing a 🤯 step-function improvement (even compared to gpt-4-0613, see eval reports below)! 🤔 @pcmoritz and I are curious if others are seeing quality jumps like this in their applications and any ideas as to why (MoE, training cutoffs, etc.)? - 📜 Blog: anyscale.com/blog/a-comprehe… - 💻 Code: github.com/ray-project/llm-a… - 📓 Notebook: github.com/ray-project/llm-a… - 🚀 Endpoints: docs.endpoints.anyscale.com/ (Mixtral at $0.5 / million tokens on @anyscalecompute)
12
66
437
117,352
Made With ML retweeted
The Llama Guard model is now available on Anyscale Endpoints. Get started here: docs.endpoints.anyscale.com Example:
7 Dec 2023
Replying to @AIatMeta
At release, Purple Llama includes: - CyberSecEval - Llama Guard model - Tools for insecure code detection & testing for cyber attack compliance We're also publishing two new whitepapers outlining this work. Get Purple Llama ➡️ bit.ly/3GuEnCL
2
20
54
17,302
Made With ML retweeted
One of the most common asks we get is for public (and reproducible) performance benchmarks. LLM inference performance benchmarks are subtle, and this is a rapidly evolving space, so numbers quickly become stale. But to make comparisons, we need to be talking about the same thing. So today, we are open sourcing our benchmark suite. We invite the community to run it and to collaborate with us on augmenting it. 🎉🎉 github.com/ray-project/llmpe… Alright, so what metrics are we measuring 🤔 The following are fundamental metrics. In general we are interested not just in the mean but in the distribution (P50, P90, ...) 📊 ⚫️ Time to first token: The time before the LLM returns the first token. This matters for streaming applications, especially chatbots. ⚫️ Inter-token latency: The average time between consecutive tokens. We choose to include the time to first token in this measurement to avoid the degenerate case where some systems start streaming very late. ⚫️ End-to-end latency: The time from submitting the query to receiving the full response. ⚫️ Cost (e.g., per token): API providers can often trade off one of the other metrics for cost. For example, you can reduce latency by running the same model on more GPUs or using higher-end GPUs. When running models yourself on dedicated compute, replace cost with throughput (tokens / second). Interestingly, these metrics can be traded off against each other. Some considerations when doing so 👇 1⃣ A given model (e.g., Code Llama 34B) can be deployed in many ways on the same hardware (say a p4de instance). E.g., N replicas each with 8/N GPUs. 2⃣ Pipeline parallelism can improve throughput at the expense of latency. 3⃣ Time to first token is bottlenecked by compute whereas intertoken latency is bottlenecked by GPU memory bandwidth. This is just the start. We hope to work with other LLM providers to increase the level of rigor around benchmarking and provide some consistency around the metrics that we report. Read the blog post here. anyscale.com/blog/reproducib…

4
30
118
40,166
Made With ML retweeted
The definitive guide to RAG in production! 🙏 @GokuMohandas walks us through implementing RAG from scratch, building a scalable app It now has updated discussion on embedding fine-tuning, re-ranking and effectively routing requests I think this is easily the most complete discussion on building RAG Apps A perfect weekend read to code along: anyscale.com/blog/a-comprehe…
11
89
554
110,145
Made With ML retweeted
We updated our production RAG application guide with a number of new sections: ☑️ When to fine-tune embeddings ☑️ When to augment vector-based retrieval with traditional lexical search ☑️ When to rerank retrieved context ☑️ How to update & reindex as data changes Importantly, building a RAG application is not a one-time effort. Data constantly evolves (for example, if you build a Q&A chatbot for your documentation, you have to remember that your documentation and APIs are changing underneath you). As a consequence, you have to make sure that data is reindexed and that the application continues to work. We describe our process in the guide.
Added some new components (fine-tuning embeddings, lexical search, reranking, etc.) to our production guide for building RAG-based LLM applications. Combination of these yielded significant retrieval and quality score boosts (evals included). Blog: anyscale.com/blog/a-comprehe…
12
48
6,530
Made With ML retweeted
Added some new components (fine-tuning embeddings, lexical search, reranking, etc.) to our production guide for building RAG-based LLM applications. Combination of these yielded significant retrieval and quality score boosts (evals included). Blog: anyscale.com/blog/a-comprehe…
Excited to share our production guide for building RAG-based LLM applications where we bridge the gap between OSS and closed-source LLMs. - 💻 Develop a retrieval augmented generation (RAG) based LLM application from scratch. - 🚀 Scale the major workloads (load, chunk, embed, index, serve, etc.) across multiple workers. - ✅ Evaluate different configurations of our application to optimize for both per-component (ex. retrieval_score) and overall performance (quality_score). - 🔀 Implement LLM hybrid routing approach to bridge the gap b/w OSS and closed LLMs. - 📦 Serve the application in a highly scalable and available manner. - 💥 Share the 1st order and 2nd order impacts LLM applications have had on our products. 🔗 Links: - Blog post (45 min. read): anyscale.com/blog/a-comprehe… - GitHub repo: github.com/ray-project/llm-a… - Interactive notebook: github.com/ray-project/llm-a… @pcmoritz and I had a blast developing and productionizing this with the @anyscalecompute team and we're excited to share Part II soon (more details in the blog post).
7
48
205
38,200
Made With ML retweeted
19 Oct 2023
I burned in🔥2000$ in finetuning so you don't have to. I fine-tuned models with @OpenAI and @anyscalecompute API endpoints with 50million tokens. Here are the results I wish I knew before getting into finetuning. If you just want a quick snapshot, look at the figure. A longer explanation follows, explaining my findings. I am not an expert and not deep into theory of AI models. I just want to get the BEST model performance at the CHEAPEST possible price for my USE-CASE. And quickly deploy that to prod. I picked one specific simple USE-CASE. Summarizing text in a very specific tone, voice and a very specific structure. Trained both models with close to 50M tokens (~37M words). In short, - Anyscale costs 40X cheaper to finetune. - Anyscale costs 56x cheaper to finetune. Comparing the outputs, I get on par performance from llama-13b-fine-tuned as gpt-3.5-fine-tuned. Finetuning smaller models is clearly the way to go for simpler use-cases! I don't understand OpenAI's offering for fine-tuning here. They need to step-up the game. They need to either reduce the price or offer flexibility to compete with open-source fine-tuning models. I am going to run an another experiment which is a way more complicated use-case. It would be interesting to see who wins here. I suspect @OpenAI Turbo will have an edge here (otherwise the pricing does not make sense). P.S : I also know I can finetune models locally & directly without API. Like I said, I am not deep into theory yet. I tried this in @huggingface with their auto-train framework. But it was just not as easy as plugging in via API calls. There were adapters and stuff, and I got quickly lost. But I am reading up and will try start including them in the comparisons too. If anyone is aware of other managed/otherwise solutions for finetuning let me know please.
31
73
670
372,589
Made With ML retweeted
7 Sep 2023
Anyscale Endpoints enables AI application developers to easily swap closed models for the Llama 2 models — or use open models along with closed models in the same application.
7 Sep 2023
The team @MetaAI has done a tremendous amount to move the field forward with the Llama models. We're thrilled to collaborate to help grow the Llama ecosystem. anyscale.com/blog/anyscale-a…
10
29
168
58,726
Made With ML retweeted
7 Sep 2023
The team @MetaAI has done a tremendous amount to move the field forward with the Llama models. We're thrilled to collaborate to help grow the Llama ecosystem. anyscale.com/blog/anyscale-a…
2
18
81
77,564
Made With ML retweeted
3 free MLOps courses you should know about: ▪️ MLOps Course, @GokuMohandas ▪️ CS 329S: Machine Learning Systems Design @Stanford ▪️ MLOps Zoomcamp @Al_Grigor 🧵
1
73
278
45,269
Made With ML retweeted
New LLM integration 🔥: @anyscalecompute endpoints allows any developer to easily run finetune open-source LLMs through an API. Best of all you get the full power of Ray Serve/Train for scalable/efficient training and inference ⚡️ Big s/o to kylehh: gpt-index.readthedocs.io/en/…
2
10
31
5,961
Made With ML retweeted
Later this month, Niantic will present at Ray Summit 23 and our own @dreamingleo89 wrote about how we are using Ray to improve multiple aspects of our scanning and mapping infrastructures, and we're just getting started. nianticlabs.com/news/ray?hl=…
2
5
23
10,945
Made With ML retweeted
🤔 Fine-tuning LLMs: LoRA or Full-Parameter? Which should you choose? Uncover the insights in our latest technical blog. 🔗 Link: anyscale.com/blog/fine-tunin… 🧵 Thread (1/N) 👇
3
43
205
35,219
Made With ML retweeted
High signal ML for developers guide! 🙏 Building Machine Learning Applications in real world involves a lot of moving parts and ideas. This series covers all of them really well Made with ML by @GokuMohandas is the best no-nonsense collection of guides with every module covering important aspects of ML life cycle For anyone looking for crispy tutorials on best practises, start here: madewithml.com/
2
22
119
11,701
Made With ML retweeted
Save cloud costs while keeping quality high with your open source LLM - > Llama 2 is about as factually accurate as GPT-4 for summaries and is 30 times cheaper anyscale.com/blog/llama-2-is… via @anyscalecompute #ML #AI #ArtificialIntelligence #LLM
1
4
19
1,556
Made With ML retweeted
A very comprehensive case study on fine-tuning Llama-2 across three different tasks👇 - code for distributed fine-tuning w/ @raydistributed @huggingface Accelerate @MSFTDeepSpeed - data prep eval baselines - when to & not to fine-tune - using perplexity for checkpointing
🚀 Exploring Llama-2’s Quality: Can we replace generalist GPT-4 endpoints with specialized OSS models? Dive deep with our technical blogpost to understand the nuances and insights of fine-tuning OSS models. 🔗anyscale.com/blog/fine-tunin… 🧵 Thread 1/N👇
1
20
97
20,606