{"id":5696,"date":"2024-01-11T02:06:05","date_gmt":"2024-01-11T02:06:05","guid":{"rendered":"https:\/\/www.salesforce.com\/?p=5696"},"modified":"2024-01-11T02:06:07","modified_gmt":"2024-01-11T02:06:07","slug":"adapt-or-train-your-own-llm","status":"publish","type":"post","link":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/","title":{"rendered":"How To Unlock the Power of Generative AI Without Building Your Own LLM"},"content":{"rendered":"\n<p>Everyone wants generative AI applications and their groundbreaking capabilities, such as creating content, summarising text, answering questions, translating documents, and even reasoning on their own to complete tasks.<\/p>\n\n\n\n<p>But where do you start? How do you add large language models (LLMs) to your infrastructure to start powering these applications? Should you train your own LLM? Customise a pre-trained open-source model? Use existing models through APIs?<\/p>\n\n\n\n<p>Training your own LLM is a daunting and expensive task. The good news is that you don&#8217;t have to. Using existing LLMs through APIs allows you to unlock the power of generative AI today, and deliver game-changing AI innovation fast.<\/p>\n\n\n\n<p>How can a generic LLM generate relevant outputs for your company? By adding the right instructions and grounding data to the prompt, you can give an LLM the information it needs to learn \u201cin context,\u201d and generate personalised and relevant results, even if it wasn\u2019t trained on your data.<\/p>\n\n\n\n<p>Your data belongs to you, and passing it to an API provider might raise concerns about compromising sensitive information. That\u2019s where the <a href=\"https:\/\/developer.salesforce.com\/blogs\/2023\/10\/inside-the-einstein-trust-layer\" target=\"_blank\" rel=\"noreferrer noopener\">Einstein Trust Layer<\/a> comes in. (More on this later.)<\/p>\n\n\n\n<div class=\"layout-one wp-block-salesforce-blog-offer\">\n\t<div class=\"wp-block-offer__wrapper\">\n\n\t\t<div class=\"wp-block-offer__content\">\n\t\t\t<h2 class=\"wp-block-offer__title\"><strong>What is an LLM?<\/strong><\/h2>\n\t\t\t\t\t\t\t<p class=\"wp-block-offer__description\">Large language models (LLMs) are a type of AI that can generate human-like responses by processing natural-language inputs. <\/p>\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t<div class=\"wp-block-button\">\n\t\t\t\t\t<a class=\"wp-block-button__link\" target=\"_blank\" href=\"https:\/\/www.salesforce.com\/ap\/blog\/generative-ai-glossary\/\">Check out our AI glossary<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"wp-block-offer__media\">\n\t\t\t\t\t<\/div>\n\t<\/div>\n\n\t\t\t<div class=\"wp-block-offer__graphics wp-block-offer__contour\"><\/div>\n\t\n\t\t\t<!-- Standard Illustration -->\n\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__illustration\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-illustration-layout-one.png\" alt=\"\">\n\n\t\t<!-- Small Accent Illustration -->\n\t\t\t\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__accent\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-accent-layout-one.png\" alt=\"\">\n\t\t\n\t\t<!-- Left Side Illustration -->\n\t\t\n\t\t<!-- Cloud Illustration -->\n\t\t\t\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__cloud\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-cloud-layout-one.png\" alt=\"\">\n\t\t\n\t<\/div>\n\n\n\n<p>In this blog post, we\u2019ll review the different strategies to work with LLMs, and take a deeper look at the easiest and most commonly used option: using existing LLMs through APIs.&nbsp;<\/p>\n\n\n\n<p>As Salesforce\u2019s SVP of technical audience relations, I often work with my team to test things out around the company. I\u2019m here to take you through each option so you can make an informed decision.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-1-train-your-own-llm-hint-you-don-t-have-to\"><strong>1. Train your own LLM (Hint: You don&#8217;t have to)<\/strong><\/h2>\n\n\n\n<p>Training your own model gives you full control over the model architecture, the training process, and the data your model learns from. For example, you could train your own LLM on data specific to your industry: This model would likely generate more accurate outputs for your domain-specific use cases than a general-purpose model.&nbsp;<\/p>\n\n\n\n<p>But training your own LLM from scratch has some drawbacks, as well:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Time: It can take weeks or even months.<\/li>\n\n\n\n<li>Resources: You\u2019ll need a significant amount of computational resources, including GPU, CPU, RAM, storage, and networking.<\/li>\n\n\n\n<li>Expertise: You\u2019ll need a team of specialised Machine Learning (ML) and Natural Language Processing (NLP) engineers.<\/li>\n\n\n\n<li>Data security: LLMs learn from large amounts of data \u2014 the more, the better.<strong> <\/strong>Data security in your company, on the other hand, is often governed by the principle of least privilege: You give users access to only the data they need to do their specific job. In other words, the less data the better. Balancing these opposing principles may not always be possible.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-salesforce-blog-newsletter-signup prevent-bottombar-overlap layout layout-ai\" >\n\n\t\t\t\t<h2 class=\"wp-block-salesforce-blog-newsletter-signup__title\">\n\t\t\tGet articles selected just for you, in your inbox\t\t<\/h2>\n\t\t\t\t\t<a href=\"https:\/\/www.salesforce.com\/ap\/form\/other\/blog-newsletter\/?d=blog-btn-footersubscribe\" class=\"wp-block-salesforce-blog-newsletter-signup__cta btn btn-lg btn-primary\" target=\"_blank\">\n\t\t\tSign up now\t\t<\/a>\n\t<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2-customise-a-pre-trained-open-source-model-hint-you-don-t-have-to\"><strong>2. Customise a pre-trained open-source model (Hint: You don\u2019t have to)<\/strong><\/h2>\n\n\n\n<p>Open-source models are pre-trained on large datasets and can be fine-tuned on your specific use case. This approach can save you a lot of time and money compared to building your own model. But even though you don\u2019t start from scratch, fine-tuning an open-source model has some of the characteristics of the train-your-own-model approach: It still takes time and resources, you still need a team of specialised ML and NLP engineers, and you may still experience the data security tension described above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-3-use-existing-models-through-apis\"><strong>3. Use existing models through APIs<\/strong><\/h2>\n\n\n\n<p>The last option is to use existing models (from OpenAI, Anthropic, Cohere, Google, and others) through APIs. It\u2019s by far the easiest and most commonly used approach to build LLM-powered applications. Why?&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You don\u2019t need to spend time and resources to train your own LLM.<\/li>\n\n\n\n<li>You don\u2019t need specialised ML and NLP engineers.<\/li>\n\n\n\n<li>Because the prompt is built dynamically into users\u2019 flow of work, it includes only data they have access to.<\/li>\n<\/ul>\n\n\n\n<p>The downside of this approach? These models haven\u2019t been trained on your contextual and private company data. So, in many cases, the output they produce is too generic to be really useful.<\/p>\n\n\n\n<div class=\"layout-seven wp-block-salesforce-blog-offer\">\n\t<div class=\"wp-block-offer__wrapper\">\n\n\t\t<div class=\"wp-block-offer__content\">\n\t\t\t<h2 class=\"wp-block-offer__title\"><strong>Get started with an LLM today<\/strong><\/h2>\n\t\t\t\t\t\t\t<p class=\"wp-block-offer__description\">The Einstein 1 Platform gives you the tools you need to easily build your own LLM-powered applications. <\/p>\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t<div class=\"wp-block-button\">\n\t\t\t\t\t<a class=\"wp-block-button__link\" target=\"_blank\" href=\"https:\/\/www.salesforce.com\/ap\/products\/einstein-ai-solutions\">Unlock your own LLM<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"wp-block-offer__media\">\n\t\t\t\t\t<\/div>\n\t<\/div>\n\n\t\t\t<div class=\"wp-block-offer__graphics wp-block-offer__contour\"><\/div>\n\t\n\t\t\t<!-- Standard Illustration -->\n\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__illustration\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-illustration-layout-seven.png\" alt=\"\">\n\n\t\t<!-- Small Accent Illustration -->\n\t\t\n\t\t<!-- Left Side Illustration -->\n\t\t\n\t\t<!-- Cloud Illustration -->\n\t\t\t\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__cloud\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-cloud-layout-seven.png\" alt=\"\">\n\t\t\n\t<\/div>\n\n\n\n<p>A common technique called <strong>in-context learning<\/strong> can help you get around this. You can ground the model in your reality by <a href=\"https:\/\/www.salesforce.com\/blog\/generative-ai-prompts\/\" target=\"_blank\" rel=\"noreferrer noopener\">adding relevant data to the prompt<\/a>.&nbsp;<\/p>\n\n\n\n<p>For example, compare the two prompts below:<\/p>\n\n\n\n<p><strong>Prompt #1 (not grounded with company data):<\/strong><\/p>\n\n\n\n<p><em>Write an introduction email to the Acme CEO.<\/em><\/p>\n\n\n\n<p><strong>Prompt #2 (grounded with company data):<\/strong><\/p>\n\n\n\n<p><em>You are John Smith, Account Representative at Northern Trail Outfitters.<\/em><\/p>\n\n\n\n<p><em>Write an introduction email to Lisa Martinez, CEO of ACME.<\/em><\/p>\n\n\n\n<p><em>Acme has been a customer since 2021.<\/em><\/p>\n\n\n\n<p><em>It buys the following product lines: Edge, Peak, Elite, Adventure.<\/em><\/p>\n\n\n\n<p><em>Here is a list of Acme orders:<\/em><\/p>\n\n\n\n<p><em>Winter Collection 2024: $375,286<\/em><\/p>\n\n\n\n<p><em>Summer Collection 2023: $402,255<\/em><\/p>\n\n\n\n<p><em>Winter Collection 2023: $357,542<\/em><\/p>\n\n\n\n<p><em>Summer Collection 2022: $324,573<\/em><\/p>\n\n\n\n<p><em>Winter Collection 2022: $388,852<\/em><\/p>\n\n\n\n<p><em>Summer Collection 2021: $312,899<\/em><\/p>\n\n\n\n<p>Because the model doesn\u2019t have relevant company data, the output generated by the first prompt will be too generic to be useful. Adding customer data to the second prompt gives the LLM the information it needs to learn \u201cin context,\u201d and generate personalised and relevant output, even though it was not trained on that data.<\/p>\n\n\n\n<p>The more grounding data you add to the prompt, the better the generated output will be. However, it wouldn&#8217;t be realistic to ask users to manually enter that amount of grounding data for each request.&nbsp;<\/p>\n\n\n\n<p>Luckily, Salesforce\u2019s Prompt Builder can help you write these prompts grounded in your company data. This tool lets you create prompt templates in a graphical environment, and bind placeholder fields to dynamic data that\u2019s available through the Record page, flows, Data Cloud, Apex calls, or API calls.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d2bae1c565f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d2bae1c565f\" class=\"wp-block-image size-full wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.salesforce.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/10\/PromptBuildernew.png?strip=all&#038;quality=95\" alt=\"A screenshot of Salesforce's Prompt Builder, which can be used to train your own LLM.\" class=\"wp-image-0\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">                                                   Salesforce&#8217;s Prompt Builder.<\/figcaption><\/figure>\n\n\n\n<p>But adding company data to the prompt raises another issue: You may be passing private and sensitive data to the API provider, where it could potentially be stored or used to further train the model.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-use-existing-llms-without-compromising-your-data\">Use existing LLMs without compromising your data<\/h2>\n\n\n\n<p>This is where the <a href=\"https:\/\/developer.salesforce.com\/blogs\/2023\/10\/inside-the-einstein-trust-layer\" target=\"_blank\" rel=\"noreferrer noopener\">Einstein Trust Layer<\/a> comes into play. Among other capabilities, the Einstein Trust Layer lets you use existing models through APIs in a trusted way, without compromising your company data. Here\u2019s how it works:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d2bae1c5d45&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d2bae1c5d45\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/lh5.googleusercontent.com\/9tqBAmabGyo9rh0ZThBJWVrx4-IiDQbuHGYQjl7WEeZr7sP4JfFtWHZ2jqI_N1qSXrF_fimJQcd8UJGllJLV5KNe5MBGb114NG3iBTY7J8SFM7aEq7Nb1xfCtzMa-n8xZcZta3VpQ0EyTFqiCV776w\" alt=\"An flow chart showing how Einstein Trust Layer interacts with existing models and CRM apps.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">                              The Einstein Trust Layer interacts with existing models and CRM apps.<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Secure gateway: Instead of making direct API calls, you use the Einstein Trust Layer\u2019s secure gateway to access the model. The gateway supports different model providers and abstracts the differences between them. You can even plug in your own model if you used the train-your-own-model or customise approaches described above.<\/li>\n\n\n\n<li>Data masking and compliance: Before the request is sent to the model provider, it goes through a number of steps including data masking, which replaces personal identifiable information (PII) data with fake data to ensure data privacy and compliance.<\/li>\n\n\n\n<li>Zero retention: To further protect your data, Salesforce has zero retention agreements with model providers, which means providers will not persist or further train their models with data sent from Salesforce.<\/li>\n\n\n\n<li>Demasking, toxicity detection, and audit trail: When the output is received from the model, it goes through another series of steps, including demasking, toxicity detection, and audit trail logging. Demasking restores the real data that was replaced by fake data for privacy. Toxicity detection checks for any harmful or offensive content in the output. Audit trail logging records the entire process for auditing purposes.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-the-einstein-1-platform-works\">How the Einstein 1 Platform works<\/h2>\n\n\n\n<p>The Einstein 1 Platform abstracts the complexity of large language models. It helps you get started with LLMs today and establish a solid foundation for the future. The Einstein 1 Platform powers the next generation of Salesforce CRM applications (Sales, Service, Marketing, and Commerce), and provides you with the tools you need to easily build your own LLM-powered applications. Although Einstein 1 is architected to support the different strategies mentioned earlier (train your own model, customise an open-source model, or use an existing model through APIs), it is configured by default to use the &#8220;use existing models through APIs&#8221; strategy, which lets you unlock the power of LLMs today and provides you with the fastest path to AI innovation.&nbsp;<\/p>\n\n\n\n<p>The Einstein 1 Platform combination of Prompt Builder and the Einstein Trust Layer lets you take advantage of LLMs without having to train your own model:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prompt Builder lets you ground prompts in your company data without training a model on that data.<\/li>\n\n\n\n<li>The Einstein Trust Layer enables you to make API calls to LLMs without compromising that company data.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td><strong>Computational Resources<\/strong><\/td><td><strong>ML and NLP engineers<\/strong><\/td><td><strong>Relevant outputs<\/strong><\/td><td><strong>Time to innovation<\/strong><\/td><\/tr><tr><td>Train your own model<\/td><td>Highest<\/td><td>Yes<\/td><td>Highest<\/td><td>Slowest. Training a model can take months<\/td><\/tr><tr><td>Customise an open-source model<\/td><td>Medium<\/td><td>Yes<\/td><td>Medium<\/td><td>Medium. Can also take months<\/td><\/tr><tr><td>Use an existing model through APIs<\/td><td>Lowest<\/td><td>No<\/td><td>Lowest<\/td><td>Fastest. Start immediately with API calls<\/td><\/tr><tr><td>Use an existing model through APIs with in-context learning powered by Prompt Builder and the Einstein Trust Layer<br><\/td><td>Lowest<\/td><td>No<\/td><td>High<\/td><td>Fastest. Start immediately with API calls<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"layout-four wp-block-salesforce-blog-offer\">\n\t<div class=\"wp-block-offer__wrapper\">\n\n\t\t<div class=\"wp-block-offer__content\">\n\t\t\t<h2 class=\"wp-block-offer__title\">Hot off the press: the freshest trends in generative AI for sales<\/h2>\n\t\t\t\t\t\t\t<p class=\"wp-block-offer__description\">Discover how 1,000+ sellers are using generative AI at work, and learn the areas of focus for closing the trust gap that remains.<\/p>\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t<div class=\"wp-block-button\">\n\t\t\t\t\t<a class=\"wp-block-button__link\" target=\"_blank\" href=\"https:\/\/www.salesforce.com\/ap\/form\/pdf\/trends-in-generative-ai-report\/?d=7013y000001zpWqAAI&#038;nc=7013y000002aPWjAAM&#038;FALSEBlog-TrendsinGenAI&#038;utm_source=Blog&#038;FALSE&#038;utm_campaign=ASIA-Sales-TrendsinGenAI&#038;utm_content=All-cont-7013y000001zpWqAAI\">Get the report<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"wp-block-offer__media\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"684\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/AI-for-sales.webp\" class=\"attachment-full size-full\" alt=\"Trends in Generative AI for Sales\" srcset=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/AI-for-sales.webp 912w, https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/AI-for-sales.webp?w=300&amp;h=225 300w, https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/AI-for-sales.webp?w=768&amp;h=576 768w, https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/AI-for-sales.webp?w=150&amp;h=113 150w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/>\t\t<\/div>\n\t<\/div>\n\n\t\n\t\t\t<!-- Standard Illustration -->\n\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__illustration\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-illustration-layout-four.png\" alt=\"\">\n\n\t\t<!-- Small Accent Illustration -->\n\t\t\t\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__accent\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-accent-layout-four.png\" alt=\"\">\n\t\t\n\t\t<!-- Left Side Illustration -->\n\t\t\n\t\t<!-- Cloud Illustration -->\n\t\t\t\t\t<img decoding=\"async\" class=\"wp-block-offer__graphics wp-block-offer__cloud\" src=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/themes\/salesforce-blog\/dist\/images\/offer-block\/offer-cloud-layout-four.png\" alt=\"\">\n\t\t\n\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Large language models are the foundation for today&#8217;s groundbreaking AI applications. Instead of training an LLM on a massive dataset, save time by using an existing model with smart prompts grounded in your data. Here\u2019s how.<\/p>\n","protected":false},"author":66,"featured_media":5698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sf_justforyou_enable_alt":true,"optimizely_content_id":"b39280b31f804625bf3b1592c658b177","post_meta_title":"","ai_synopsis":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"sf_topic":[128,23,401],"sf_content_type":[],"coauthors":[415],"class_list":["post-5696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","sf_topic-360-perspectives","sf_topic-artificial-intelligence","sf_topic-ai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Train Your Own LLM or Use an Existing One? | Salesforce<\/title>\n<meta name=\"description\" content=\"Want to add a large language model to your tech stack? Should you train your own LLM or use an existing one?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Unlock the Power of Generative AI Without Building Your Own LLM\" \/>\n<meta property=\"og:description\" content=\"Want to add a large language model to your tech stack? Should you train your own LLM or use an existing one?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\" \/>\n<meta property=\"og:site_name\" content=\"Salesforce\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T02:06:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-11T02:06:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"844\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Christophe Coenraets\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christophe Coenraets\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\"},\"author\":[{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/image\/b5ce0ae4d41615eb596cb8138792671c\"}],\"headline\":\"How To Unlock the Power of Generative AI Without Building Your Own LLM\",\"datePublished\":\"2024-01-11T02:06:05+00:00\",\"dateModified\":\"2024-01-11T02:06:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\"},\"wordCount\":1451,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg\",\"inLanguage\":\"en-SG\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\",\"url\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\",\"name\":\"Train Your Own LLM or Use an Existing One? | Salesforce\",\"isPartOf\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg\",\"datePublished\":\"2024-01-11T02:06:05+00:00\",\"dateModified\":\"2024-01-11T02:06:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/de19e72c1f6bbf930d6231f2f9478f9a\"},\"description\":\"Want to add a large language model to your tech stack? Should you train your own LLM or use an existing one?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#breadcrumb\"},\"inLanguage\":\"en-SG\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-SG\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage\",\"url\":\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg\",\"contentUrl\":\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg\",\"width\":1500,\"height\":844,\"caption\":\"Want to get started with a large language model quickly? You have several options, from training your own model to using an existing one through APIs. [Image created with Firefly\/Adobe]\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.salesforce.com\/ap\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Unlock the Power of Generative AI Without Building Your Own LLM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/#website\",\"url\":\"https:\/\/www.salesforce.com\/ap\/blog\/\",\"name\":\"Salesforce\",\"description\":\"News, tips, and insights from the global cloud leader\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.salesforce.com\/ap\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-SG\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/image\/b5ce0ae4d41615eb596cb8138792671c\",\"name\":\"Christophe Coenraets\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-SG\",\"@id\":\"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/image\/3d0ebf13beaf77a8b83ef0ae063127fa\",\"url\":\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2024\/01\/1516258400482.webp?w=150&h=150&crop=1\",\"contentUrl\":\"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2024\/01\/1516258400482.webp?w=150&h=150&crop=1\",\"width\":\"150\",\"height\":\"150\",\"caption\":\"Christophe Coenraets\"},\"description\":\"https:\/\/www.salesforce.com\/blog\/author\/christophe-coenraets\/\",\"url\":\"https:\/\/www.salesforce.com\/ap\/blog\/author\/christophe-coenraets\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Train Your Own LLM or Use an Existing One? | Salesforce","description":"Want to add a large language model to your tech stack? Should you train your own LLM or use an existing one?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/","og_type":"article","og_title":"How To Unlock the Power of Generative AI Without Building Your Own LLM","og_description":"Want to add a large language model to your tech stack? Should you train your own LLM or use an existing one?","og_url":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/","og_site_name":"Salesforce","article_published_time":"2024-01-11T02:06:05+00:00","article_modified_time":"2024-01-11T02:06:07+00:00","og_image":[{"width":1500,"height":844,"url":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg","type":"image\/jpeg"}],"author":"Christophe Coenraets","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Christophe Coenraets","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#article","isPartOf":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/"},"author":[{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/image\/b5ce0ae4d41615eb596cb8138792671c"}],"headline":"How To Unlock the Power of Generative AI Without Building Your Own LLM","datePublished":"2024-01-11T02:06:05+00:00","dateModified":"2024-01-11T02:06:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/"},"wordCount":1451,"commentCount":0,"image":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg","inLanguage":"en-SG","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/","url":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/","name":"Train Your Own LLM or Use an Existing One? | Salesforce","isPartOf":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage"},"image":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg","datePublished":"2024-01-11T02:06:05+00:00","dateModified":"2024-01-11T02:06:07+00:00","author":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/de19e72c1f6bbf930d6231f2f9478f9a"},"description":"Want to add a large language model to your tech stack? Should you train your own LLM or use an existing one?","breadcrumb":{"@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#breadcrumb"},"inLanguage":"en-SG","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/"]}]},{"@type":"ImageObject","inLanguage":"en-SG","@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#primaryimage","url":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg","contentUrl":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg","width":1500,"height":844,"caption":"Want to get started with a large language model quickly? You have several options, from training your own model to using an existing one through APIs. [Image created with Firefly\/Adobe]"},{"@type":"BreadcrumbList","@id":"https:\/\/www.salesforce.com\/ap\/blog\/adapt-or-train-your-own-llm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.salesforce.com\/ap\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Unlock the Power of Generative AI Without Building Your Own LLM"}]},{"@type":"WebSite","@id":"https:\/\/www.salesforce.com\/ap\/blog\/#website","url":"https:\/\/www.salesforce.com\/ap\/blog\/","name":"Salesforce","description":"News, tips, and insights from the global cloud leader","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.salesforce.com\/ap\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-SG"},{"@type":"Person","@id":"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/image\/b5ce0ae4d41615eb596cb8138792671c","name":"Christophe Coenraets","image":{"@type":"ImageObject","inLanguage":"en-SG","@id":"https:\/\/www.salesforce.com\/ap\/blog\/#\/schema\/person\/image\/3d0ebf13beaf77a8b83ef0ae063127fa","url":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2024\/01\/1516258400482.webp?w=150&h=150&crop=1","contentUrl":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2024\/01\/1516258400482.webp?w=150&h=150&crop=1","width":"150","height":"150","caption":"Christophe Coenraets"},"description":"https:\/\/www.salesforce.com\/blog\/author\/christophe-coenraets\/","url":"https:\/\/www.salesforce.com\/ap\/blog\/author\/christophe-coenraets\/"}]}},"jetpack_featured_media_url":"https:\/\/www.salesforce.com\/ap\/blog\/wp-content\/uploads\/sites\/8\/2023\/10\/Your-Company-Needs-an-LLM.jpg","jetpack_sharing_enabled":true,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Salesforce","distributor_original_site_url":"https:\/\/www.salesforce.com\/ap\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/posts\/5696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/comments?post=5696"}],"version-history":[{"count":17,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/posts\/5696\/revisions"}],"predecessor-version":[{"id":5738,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/posts\/5696\/revisions\/5738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/media\/5698"}],"wp:attachment":[{"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/media?parent=5696"}],"wp:term":[{"taxonomy":"sf_topic","embeddable":true,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/sf_topic?post=5696"},{"taxonomy":"sf_content_type","embeddable":true,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/sf_content_type?post=5696"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.salesforce.com\/ap\/blog\/wp-json\/wp\/v2\/coauthors?post=5696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}