LLM Comparator using Streamlit and Groq (code in description)

Agam Arora · Intermediate ·🧠 Large Language Models ·1y ago

Key Takeaways

Building an LLM comparator using Streamlit and Groq to evaluate model performance

Original Description

Which model is better, Llama 8b vs Mixtral 8x7b vs Llama 70b vs ....? Which is faster, accurate, reliable or safe? Streamlit App: https://groq-llm-comparator.streamlit.app/ Github Repo: https://github.com/agamarora/groq_llm_comparator To answer this and many more such questions, I built an LLM comparator using Groq and Streamlit. You can easily compare the responses and token utilization. You can even use another model as a comparator to compare them based on relevance, prompt adherence and performance (time to response and token utilization). As of now you can compare the following models; LLaMA 8B, LLaMA 8B Instant, LLaMA 70B, LLaMA 70B Versatile, Mixtral 8x7B, Gemma 7B IT and Gemma 2 9B IT. The project is open-source and also available on streamlit-share. You would need to create an account on Groq ) and generate a free API key for yourself to try this. This simple project allows us to not only compare and contrast different foundational models but test out different settings such as temperature, top_p (nucleus sampling), token constraints against different prompts. This is possible only because Groq is democratizing how we use large language models. I am a fan of Groq and how they are revolutionizing inference and bringing state-of-the-art opensource models for us to use at blazingly fast speeds. I plan to add proprietary model support in the future to compare some of the top models against opensource ones as well. Hope you guys enjoy this. Be curious and keep experimenting ❤️
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
FutureX · Physical AI Daily — Issue 61 (07/18)
Learn about the latest developments in physical AI, including embodied intelligence, humanoid robots, and robotaxi fleets, and how they are being integrated into the physical world
Dev.to AI
📰
Moving Beyond the Prompt
Learn to move beyond basic prompts in LLMs by utilizing context, embeddings, and semantic search to improve model performance and efficiency
Medium · LLM
📰
Moonshot’s Kimi K3 sends AI and semiconductor stocks into a tailspin Moonshot’s Kimi K3 sends AI and semiconductor stocks into a tailspin. China's largest open-weight AI model revives DeepSeek-era fears about the economics of US infrastructure spending.
Moonshot's Kimi K3 AI model sparks concerns about US infrastructure spending and sends AI and semiconductor stocks downward, reviving DeepSeek-era fears.
Reddit r/artificial
📰
Bölüm 1: Veri Hasadı ve Yeni Arayüz Olarak İnsan Bedeni
Explore how AI models' data hunger transforms the human body into a biological hardware and the implications of synthetic data on physical reality
Medium · AI
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →