WSaaS (@WSaaSHQ) header
WSaaS (@WSaaSHQ) profile picture

Grow your business and streamline your operations by harnessing the full potential of the cloud, data and AI. Subscribe to our newsletter: https://teapawt.org/t.co/K24kaIpQmO

Dallas, Texas, USA
Joined February 2022
Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)Photo by WSaaS (@WSaaSHQ)
Optimize Generative AI LLMs: Top 20 Hyperparameters You Need to Know #generativeai #llms #hyperparameters #deeplearning #machinelearning keneoliobi.substack.com/p/op…
2
3
57
Event-Driven Architecture vs Message-Driven Architecture: Four Differences When designing asynchronous / decoupled / loosely-coupled systems, many of us conflate Event-Driven Architecture with Message-Driven Architecture. events != messages Here are four ways to think about the differences between an Event-Driven Architecture [EDA] and a Message-Driven Architecture [MDA]: 1️⃣ EDA is Noun-Oriented. MDA is Verb-Oriented. • EDA: Notification [Noun] that something happened. E.g., User Visited, Product Added to Cart, Order Placed. Producer is Broadcaster: Consumer chooses what to do with notification, if anything. • MDA: Instruction [Verb] to do something. E.g., Update Inventory, Ship Order, Email Customer. Producer is Director: Consumer must follow instruction. 2️⃣ EDA is Many Consumers. MDA is Single Consumer. • EDA: Many consumers can act on any given event / notification. • MDA: One and only one consumer acts on any given message. 3️⃣ EDA is Dumb-Service-to-Smart Service. MDA is Smart-Service-to-Dumb-Service. • Dumb Service: Zero to minimal business logic. E.g., Log an event [e.g., "User Visited"] without any further processing; Publish an event [e.g., "Order Placed"] to a stream without any knowledge of who will consume it. • Smart Service: Intelligent business logic. E.g., Receive a message "Update Inventory" and perform the necessary inventory update logic; Consume a message "Email Customer" and use customer information and order details to craft and send a personalized email. 4️⃣ EDA publishes to Stream / Topic. MDA publishes to Queue. I'll also add that you can use an event-driven system to implement a message-driven system; but generally not the other way around. So on AWS, for instance, you can implement an event-driven architecture using: • Amazon Managed Streaming for Apache Kafka [MSK] • Amazon Kinesis Data Streams • Amazon EventBridge • Amazon Simple Notification Service [SNS] For a message-driven architecture, I could use any of the above services. Overkill, yes, but possible. You can implement a message-driven architecture on AWS with Amazon Simple Queue Service [SQS]. However, implementing an event-driven architecture on SQS [or attempting to do so] would be an anti-pattern. Hope this helps!
1
3
55
According to the Harvard Business Review, fewer than 40% of companies that invest in AI see gains from it, often due to one or more of these errors: (1) They don't ask the right question, and end up directing AI to solve the wrong problem. (2) They don't recognize the differences between the value of being right and the costs of being wrong, and assume all prediction mistakes are equivalent. (3) They don't leverage AI's ability to make far more frequent and granular decisions, and keep following their old practices. You can boost the payoffs from your AI investments by continuously interrogating your AI strategy with the following questions: • Are you reasoning from first principles? Start with the problem [or opportunity] then work backwards to potential AI solutions. AI is a means to an end, not an end in and of itself. • Are you tackling the root cause of a problem or its symptoms? Keep asking "Why", to uncover then attack the real problem. A misfired solution will yield suboptimal results, no matter how "sophisticated" your solution is. • Do you embrace experimentation [and fail-fast / fail-forward]? AI is probabilistic so there are no guarantees it will "work". You know it works when you get it to work. Learn by doing. Double down or pivot. • Are you leveraging data to prioritize your use cases for AI transformation? Systematically prioritize by business value, feasibility, and opportunities to build on past wins. • Do you quantify the tangible value of outcomes [both positive and negative]? Wins and losses are not created equally. Measure the value of missed opportunities vs waste. Where direct measurement is not possible, use approximations or proxy metrics. • Do you track your results at the right levels of detail? In addition to your global KPIs, monitor your metrics across slices of your data to detect problems that might be impacting specific segments. • Are you simply excited to latch on a new "shiny object" or, even worse, "tool" to an existing process? Think out-of-the-box and envision AI-enabled possibilities to transform your operating [and business] models.
1
2
67
RAG is not a silver bullet for solving "hallucination" - the model untruth problem. While RAG powered by vector search of unstructured and semi-structured data is a powerful technique, the pattern is just one capability in an evolving suite of methods to enhance model output quality. An increasingly interesting area is RAG powered by exact search of structured and semi-structured data from relational, document and graph DBs. Another promising area is the use of fine-tuned guardrail models to control/enhance/refine inputs to and outputs from your primary model. techcrunch.com/2024/05/04/wh…
1
11
129
Is TensorFlow dying? Google is discontinuing the TensorFlow Developer Certificate on May 31, 2024 😳 85% of models on Hugging Face can only be used with PyTorch. LLMs are effectively PyTorch-first. Check out the link in the comments to read more on "Why TensorFlow for Python is dying a slow death". Nonetheless, TensorFlow is not going away anytime soon, given its massive footprint. Image Credit: TNW + Stack Overflow
1
1
6
268
According to the Wall Street Journal, some executives and researchers predict that the industry's need for high-quality text data could outpace supply within two years. One solution will be increasing use of AI-generated synthetic data; notwithstanding the "model collapse" risks of such "inbreeding". For enterprises customizing models for internal workflows, there is still a vast amount of unstructured data — Think emails, documents, meeting video recordings, etc — that is largely untapped. Easily 90%+ of corporates' data volume lies in this unstructured space, so there is still tons of work to do here. wsj.com/tech/ai/ai-training-…
1
1
4
129
Streamlining Generative AI: LangChain vs LlamaIndex As enterprises accelerate their generative AI adoption, key challenges include: 1) Streamlining the ecosystem of your LLM solutions 2) Securely accessing your proprietary data to feed your models LangChain and LlamaIndex are LLM orchestration frameworks that are seeing significant uptake to address the above two challenges. But what's the difference between these popular open-source frameworks? Here's a quick rundown: *️⃣ LangChain: Your LLM Workflow Orchestrator • Interfaces with your models. • Structures your model inputs and outputs. • Retrieves data from your documents and vector DBs, to power retrieval-augmented generation [RAG]. • Hard-codes sequences of actions [Chains]. • Constructs LLM-directed sequences of actions [Agents]. *️⃣ LlamaIndex: Your LLM Data Orchestrator • Loads your model with data from 160+ unstructured, semi-structured & structured data sources. • Stores and indexes your data into 40+ vector, document, graph & SQL DBs. • Orchestrates workflows over your data: chains, agents & RAG. • Evaluates data retrieval and LLM response quality. So while there's some overlap between the capabilities of LangChain and LlamaIndex, their essential strengths diverge. #LangChain excels at high-level orchestration and abstraction of your LLM components/workflows. #LlamaIndex specializes in robust data integration: ingesting, indexing and querying data for your LLMs. Therefore, combine the best-in-class strengths from each of these powerful frameworks to: 1) Streamline your generative AI architecture; 2) Enhance relevance/accuracy of your model responses; 3) Accelerate time-to-delivery for your #generativeAI initiatives.
2
2
115
Struggling to get your team on board with digital transformation? HBR's Adoption Matrix for Digital Transformation can help. This simple 2x2 matrix is a powerful framework to assess your team's readiness to embrace change. Here is how it works: 1️⃣ Inspiration: How much does digital transformation matter to the person? Map to top or bottom row. 2️⃣ Capacity: Does the person have the skills to adopt new digital capabilities? Then map to left or right column. Once mapped, each team member lands in one of four quadrants: 🚀 Top-Right [Inspired]: Digital transformation believer with skills to execute. This is the goal. 😕 Top-Left [Frustrated]: Believes in the cause but lacks skills. Needs training. 🤔 Bottom-Right [Indifferent]: Has skills but not inspired. May be skeptical. Potential "bad apple". Start by motivating and educating. 😞 Bottom-Left [Oppressed]: Does not believe in the cause and lacks skills. Very challenging. Use this matrix to assess your team. Then create a personalized plan to move each key player to the Inspired top right quadrant. Successful #DigitalTransformation requires buy-in and competence from everyone. Image Credit: @HarvardBiz
2
3
88
Do you know you can perform analytics on unstable data on AWS? Imagine ingesting event data as JSON files with unpredictable schema changes. In the past, handling evolving schemas required building metadata-driven orchestration — such as with Airflow — to auto-generate pipelines for each new schema. High overhead. You can eliminate much of the overhead using a serverless, fully-managed solution combining AWS Glue Crawlers, the AWS Glue Data Catalog and Amazon Redshift Spectrum. Crawlers can automatically discover new data and schema changes in your S3 data lake. The crawler updates the Glue Data Catalog with metadata for the latest files. Very importantly, the crawler creates a hybrid schema in the catalog that handles old and new data. You can run crawlers on a schedule or trigger them automatically when data changes, via S3 event notifications to SQS. With your up-to-date metadata stored in the Glue Data Catalog, you can leverage Redshift Spectrum to query files in unified tables combining prior and current schemas. This serverless approach optimizes costs through pay-per-use pricing and elastic auto-scaling. It also accelerates time-to-insight by simplifying your solution architecture and automating schema management. Check out the AWS article below for detail on building an analytics pipeline that gracefully adapts to schema changes. aws.amazon.com/blogs/big-dat…
2
4
75
New GitHub Copilot Research Finds 'Downward Pressure on Code Quality' "Code churn — the percentage of lines that are reverted or updated less than two weeks after being authored — is projected to double in 2024 compared to its 2021, pre-AI baseline." - Coding on Copilot: GitClear visualstudiomagazine.com/art…
2
4
119
Decoupling how AI "thinks" from what AI "knows" Vector databases enable such separation. Three benefits of decoupling: 1) Control: Modify / delete knowledge as needed. No model retraining required. 2) Accuracy: Marry AI inference with the exact knowledge required in real-time. 3) Freedom: Work with any kind of data. E.g., Emails, Meeting Recordings, DNA Sequences. No data structures / schemas. For an excellent explanation of this distinction between AI thinking and knowing, check out the TED talk from @EdoLiberty, Founder and CEO of vector database company @Pinecone ted.com/talks/edo_liberty_ho…
1
2
6
122
RT @KeneOliobi: Proprietary data is key to sustainably capturing value with AI. weightythoughts.com/p/most-a…
LLM Selection > LLM Evaluation LLM Evaluation is a subset of LLM Selection. #1. LLM Selection: What model(s) do I evaluate? ⟶ Then evaluate. #2. LLM Evaluation: What is the most accurate model for my use case? LLM evaluation also gives you insights into model robustness, creativity, factual knowledge, toxicity and bias / explainability. Check out my post on LLM Selection: teapawt.org/KeneOliobi/status/1729… For LLM Evaluation capabilities, check out recent announcements from AWS ⬇️ Amazon SageMaker Clarify: aws.amazon.com/blogs/aws/ama… Amazon Bedrock: aws.amazon.com/blogs/aws/eva… #LLMSelection #LLMEvaluation #GenerativeAI
How do you pick the right large language model? Here are key criteria you can use to pick the optimal large language model (LLM) for your use case: 1️⃣ Custom Build vs Pre-Trained: Do you custom build an LLM from scratch for full control but higher cost? Or leverage a pre-trained foundation model for lower cost but less customization? Open source pre-trained models: Llama 2, Falcon, Dolly 2.0, FLAN-T5, BLOOM, MPT If using open-source model or you're training from scratch, your implementation options include: Amazon Bedrock + SageMaker, MosaicML, Google Cloud Vertex AI Proprietary pre-trained models: GPT-4, Claude 2, Palm 2 Access proprietary models through their APIs. Key benefit of training from scratch is that you eliminate the potential security / privacy risks of using 3rd party models. 2️⃣ Cost: Consider costs of model training and inference. Training from scratch is generally the most expensive option. With proprietary models, you pay-per-use for API requests. Pay-per-use can get expensive fast, depending on usage volume. Consider using an open-source model for decent cost-accuracy balance. Customize model to boost accuracy. More on customization below. 3️⃣ Domain Expertise: Does your model know your data? Foundation models (FMs) are generalists. Pick model parameter size variant to index on generalizability. To customize model into a specialist on your data, consider: 1) Prompt Engineering: In-Context Learning (ICL), Chain / Tree / Graph of Thought 2) Fine-Tuning: Train FM with domain-specific data. 3) Retrieval-Augmented Generation (RAG): Enhance context of model input with domain-specific data. Leverage graph DB for vector embeddings and similarity search. Model customization is a requirement for enterprise use cases. 4️⃣ Legal Risk: Was model trained with data scraped from the web? Be aware of the data sourcing methods for pre-trained models to avoid potential legal issues. Watching ongoing / potential lawsuits from companies and other owners of IP used to train LLMs. Eliminate legal risk by building model from scratch in-house: Train with only your data and data for which you have permission to use. However, the cost of training from scratch in-house is a dealbreaker for most companies. 5️⃣ Accuracy While accuracy is a moving target, current model accuracy rankings are roughly: 1) OpenAI GPT-4 2) Anthropic Claude 2 3) Google Palm 2 4) xAI Grok-1 5) OpenAI GPT 3.5 6) Inflection AI Inflection-1 7) Meta LLaMa2 70B 8) xAI Grok-0 Benchmark LLMs against your use case. Pick model then customize. 6️⃣ Inference Speed: How quickly does LLM respond to input? Consider model distillation to reduce latency. 7️⃣ Context Size: Size of input. The number of tokens an LLM can process in a single prompt varies across LLMs. • Claude 2.1: 200K • GPT-4 Turbo: 128K 8️⃣ Modality: Most LLMs are focused on text-to-text but some are branching into other modalities like vision, audio and video. #LLMs #GenerativeAI
2
4
151
How do you pick the right large language model? Here are key criteria you can use to pick the optimal large language model (LLM) for your use case: 1️⃣ Custom Build vs Pre-Trained: Do you custom build an LLM from scratch for full control but higher cost? Or leverage a pre-trained foundation model for lower cost but less customization? Open source pre-trained models: Llama 2, Falcon, Dolly 2.0, FLAN-T5, BLOOM, MPT If using open-source model or you're training from scratch, your implementation options include: Amazon Bedrock + SageMaker, MosaicML, Google Cloud Vertex AI Proprietary pre-trained models: GPT-4, Claude 2, Palm 2 Access proprietary models through their APIs. Key benefit of training from scratch is that you eliminate the potential security / privacy risks of using 3rd party models. 2️⃣ Cost: Consider costs of model training and inference. Training from scratch is generally the most expensive option. With proprietary models, you pay-per-use for API requests. Pay-per-use can get expensive fast, depending on usage volume. Consider using an open-source model for decent cost-accuracy balance. Customize model to boost accuracy. More on customization below. 3️⃣ Domain Expertise: Does your model know your data? Foundation models (FMs) are generalists. Pick model parameter size variant to index on generalizability. To customize model into a specialist on your data, consider: 1) Prompt Engineering: In-Context Learning (ICL), Chain / Tree / Graph of Thought 2) Fine-Tuning: Train FM with domain-specific data. 3) Retrieval-Augmented Generation (RAG): Enhance context of model input with domain-specific data. Leverage graph DB for vector embeddings and similarity search. Model customization is a requirement for enterprise use cases. 4️⃣ Legal Risk: Was model trained with data scraped from the web? Be aware of the data sourcing methods for pre-trained models to avoid potential legal issues. Watching ongoing / potential lawsuits from companies and other owners of IP used to train LLMs. Eliminate legal risk by building model from scratch in-house: Train with only your data and data for which you have permission to use. However, the cost of training from scratch in-house is a dealbreaker for most companies. 5️⃣ Accuracy While accuracy is a moving target, current model accuracy rankings are roughly: 1) OpenAI GPT-4 2) Anthropic Claude 2 3) Google Palm 2 4) xAI Grok-1 5) OpenAI GPT 3.5 6) Inflection AI Inflection-1 7) Meta LLaMa2 70B 8) xAI Grok-0 Benchmark LLMs against your use case. Pick model then customize. 6️⃣ Inference Speed: How quickly does LLM respond to input? Consider model distillation to reduce latency. 7️⃣ Context Size: Size of input. The number of tokens an LLM can process in a single prompt varies across LLMs. • Claude 2.1: 200K • GPT-4 Turbo: 128K 8️⃣ Modality: Most LLMs are focused on text-to-text but some are branching into other modalities like vision, audio and video. #LLMs #GenerativeAI
2
4
215
Only 10% of companies have fully captured cloud's potential value. - McKinsey Can Gen AI help accelerate your cloud ROI? Yes, according to McKinsey: 1) Use cloud to implement gen AI initiatives. Is this even optional? 2) Accelerate cloud programs with gen AI-enabled workflows to: (i) Unlock new business use cases; (ii) Shrink time and cost of app migrations; (iii) Boost productivity of engineering and infra teams. Check out the report from McKinsey ⬇️ mckinsey.com/capabilities/mc… #GenerativeAI #CloudAdoption
1
2
131
RT @KeneOliobi: Amazon reportedly training AI with twice as many parameters as GPT-4 Are we are anywhere (even remotely) close to when we…
NVIDIA is launching a new must-have AI chip: H200 A100 ⟶ H100 ⟶ H200 The H200 has approx. 2x the memory capacity of the H100. theverge.com/2023/11/13/2395…
2
2
102