<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Eva Thompson on Medium]]></title>
        <description><![CDATA[Stories by Eva Thompson on Medium]]></description>
        <link>https://medium.com/@SymeCloud?source=rss-b5aea3bf72c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hnGbKQa_O47T6JvpYHUnww.png</url>
            <title>Stories by Eva Thompson on Medium</title>
            <link>https://medium.com/@SymeCloud?source=rss-b5aea3bf72c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:48:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SymeCloud/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is FIM and why does it matter in LLM-based AI]]></title>
            <link>https://medium.com/@SymeCloud/what-is-fim-and-why-does-it-matter-in-llm-based-ai-53f33385585b?source=rss-b5aea3bf72c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f33385585b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[fim]]></category>
            <dc:creator><![CDATA[Eva Thompson]]></dc:creator>
            <pubDate>Sat, 21 Oct 2023 09:57:07 GMT</pubDate>
            <atom:updated>2023-10-21T10:09:08.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*qVQYWh8GbK6bCwia.jpeg" /></figure><p>When you’re writing in your favorite editor, the AI-like copilot will instantly guess and complete based on what you’ve written in the editor buffer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*FcOoev6YK5d1OFK-641p0A.png" /></figure><p>This is usual for daily AI-assistant users. The huge language models that have been developed are trained on massive amounts of data to do one thing exceptionally well: predict the next character based on the previous N characters. The ability to make these predictions with high accuracy is the powerful force behind the current boom in AI. It enables the creation of chatbots like Bing and ChatGPT, writing assistants like Jasper, and code autocomplete tools like Copilot.</p><p>However, the computation behind this kind of text inference requires the AI to accept previous N characters first. But sometimes in our practical writing or coding, we may have a “hole” between contexts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*GOc4VftuPV73M3BhbF0RHQ.png" /></figure><p>We hope the AI assistant can fill the “hole” for us with proper content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*N97xiuH7-gzXsaiR.png" /></figure><p>This kind of technique is called FIM, Fill-in-the-Middle.</p><h3>How Fill-in-the-Middle works</h3><p>FIM was first introduced in the paper <a href="https://arxiv.org/pdf/2207.14255.pdf">&lt;&lt;Efficient Training of Language Models to Fill in the Middle&gt;&gt;</a> from OpenAI.</p><p>The problem they realized is that all the existing model classes are limited when it comes to <strong>infilling</strong>, where the model is tasked with generating text at a specific location within a prompt, while conditioning on both a prefix and a suffix. Left-to-right models can only condition on the prefix. The <strong>infilling</strong> step will only generate a shorter result which is not good for practical using. However, the <strong>infilling</strong> operation has wide usage, for example, in creating a coding assistant, <strong>infilling</strong> can be used for docstring generation, import statement generation, or for completing a partially written function. So it is worth optimizing <strong>infilling</strong>.</p><p>The basic idea is simple: cutting each document into three parts: prefix, middle, and suffix. Perform this split before tokenization when the document is still a sequence of characters. Split uniformly at random, which means the lengths of prefix, middle, and suffix are each 1/3 of the full document in expectation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxshjPUVLvrL7LGsxQhaGg.png" /></figure><h3>How to train it?</h3><p>For example, we have a sentence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VysfoVEX9tgTQylA.png" /></figure><p>Now given the prefix <strong>The quick brown fox</strong>, and the suffix <strong>a lazy dog</strong>, we expect to complete the middle content <strong>jumps over</strong>. Here’s the encoding according to FIM, <strong>EOM means End of Middle</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fvZHZ4mwBpZdvb6T.png" /></figure><p>However, since we shouldn’t know the answer <strong>&lt;MID&gt;jumps over&lt;EOM&gt;</strong> yet, for the convenience of training, we have to put the middle part to the end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VvJqhh61uHvbbR6K.png" /></figure><p>This is the ideal element format of the training dataset. It could be explained as, we already know the prefix and suffix part, and the related middle part, say, the answer, should be the content within <strong>&lt;MID&gt;…&lt;EOM&gt;</strong>.</p><h3>How to inference?</h3><p>At inference time, if we’re trying to infill a document like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mT4CwWMSFl6NVXuo.png" /></figure><p>we can present it as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rrviWWUTnXKx4oto.png" /></figure><p>to the model and <strong>request characters until the model emits an </strong><strong>&lt;EOM&gt; token</strong>, at which point it has successfully joined the prefix with the suffix.</p><h3>Conclusion</h3><p>According to the evaluation of the paper, and more applications in the industry. The accuracy of FIM model is better than non-FIM model.</p><p>What should be notable is that FIM can be learned for free. For the 50% FIM rate, the loss can be ignored. FIM has almost no cost the combine with the existing models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqpVYghrlVk8d5YmaLAntg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f33385585b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WizardLM loves more overloading rather than threading]]></title>
            <link>https://medium.com/@SymeCloud/wizardlm-loves-more-overloading-rather-than-threading-191590f7261e?source=rss-b5aea3bf72c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/191590f7261e</guid>
            <category><![CDATA[llm-benchmarks]]></category>
            <category><![CDATA[wizardlm]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[aigc]]></category>
            <dc:creator><![CDATA[Eva Thompson]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 11:38:07 GMT</pubDate>
            <atom:updated>2023-09-20T11:38:07.430Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pm9kqDbDQM2Tr9oA.jpg" /></figure><h3>What’s this benchmark for?</h3><p>In this post, we test two different quantized models of WizardLM 13B GGUF with llama.cpp. We’ll test each with or without GPU overloading.</p><p><a href="https://fossbuy.com/post/WizardLM">WizardLM</a> is a considerable alternative to Llama2. There’re 3 models so far: WizardCoder, WizardLM, WizardMath. In this test, <strong>we only consider WizardLM</strong> . The purpose is to figure out the better options to inference on <strong>consumer hardware</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jUj4-ngt8eN5DoLZ.png" /></figure><h3>Platform spec</h3><ul><li>CPU: AMD Ryzen 5500</li><li>RAM: 32G</li><li>GPU: NVIDIA GeForce RTX 3050 (8G VRAM)</li><li>SSD: KINGSTON SNV2S500G</li><li>OS: Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0–83-generic x86_64)</li><li>Driver: 535.54.03</li><li>CUDA: 12.2</li></ul><h3>llama.cpp</h3><p>We use <a href="https://github.com/ggerganov/llama.cpp">llama.cpp</a> and we focus on LLM system that can be smoothly run on consumer hardware.</p><ul><li>version: master:84e723653ca99</li><li>compile: LLAMA_CUBLAS=1</li><li>model: WizardLM</li><li>format: GGUF (<strong>the famous GGML was obsoleted by the upstream</strong>)</li></ul><h3>WizardLM 13B GGUF</h3><p>The model is <a href="https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GGUF">WizardLM 13B GGUF</a>.</p><h3>Params:</h3><ul><li>-n 1024</li><li>-p “write me a monad in python”</li></ul><h3>Sampling:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkk-IT8ImFqqGk76G6QCsA.png" /></figure><h3>generate</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbwgStcLAXTauC2-ni2tIQ.png" /></figure><h3>wizardlm-13b-v1.2.Q4_0.gguf</h3><p>This version is legacy, small, very high quality loss.</p><ul><li>Size: 7.37 GB</li><li>Max RAM: 9.87 GB</li></ul><p><strong>In run time, the actual memory around 7024.01 MB.</strong></p><p>If GPU overloading was enabled (-ngl 40), the RAM consumption was moved to VRAM:</p><ul><li>mem required = 216.20 MB (+ 400.00 MB per state)</li><li>offloading 40 repeating layers to GPU</li><li>offloaded 40/43 layers to GPU</li><li>VRAM used: 6808 MB</li></ul><p>Here’s the result graph:</p><ul><li>Orange bar is GPU overloading enabled</li><li>Unit is tokens/s</li><li>The horizontal axis represents the number of threads</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*1oNTgAIHlGW1PSvl.png" /></figure><h3>wizardlm-13b-v1.2.Q4_K_M.gguf</h3><p>This model is medium size, and balanced quality loss, which is recommended by its producer.</p><p>We will see this model consumes more RAMS, and we have to reduce the offloaded layers from 40 to 35 to prevent running out of RAM.</p><ul><li>mem required = 1186.42 MB (+ 400.00 MB per state)</li><li>offloading 35 repeating layers to GPU</li><li>offloaded 35/43 layers to GPU (40 will be out of memory)</li><li>VRAM used: 6315 MB</li></ul><p>Here’s the result graph, also:</p><ul><li>Orange bar is GPU overloading enabled</li><li>Unit is tokens/s</li><li>The horizontal axis represents the number of threads</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*8yOUHK1M8oCL08V2.png" /></figure><h3>Conclusion</h3><p>It’s useful to comapre with our previous Llama2 7B benchmark: <a href="http://localhost:3000/articles/blog/6">http://localhost:3000/articles/blog/6</a>. The CPU is a little different, but trend of the result is unrelative to specific CPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M5U-HhriteMgntzv.png" /></figure><p>Here’re our simplified conclusion, <strong>for the parameters 7B and 13B</strong>:</p><ul><li><strong>It seems that WizardLM will be affected more with GPU offloading rather than CPU threading. This is different from Llama2 7B, the increasing of threads largely affects Llama2 7B performance.</strong></li><li>WizardLM 13B has similar RAM consumption to Llama2 7B, around 8G. Not a bad choice for consumer hardware.</li><li>GPU offloading should be seriously considered, the performance is good for <strong>RTX 3050</strong>. However, the 8G VRAM version should be considered.</li><li>AMD Ryzen 5500 has 12 cores, and it’s sufficient for consumer level users. Since the bottleneck is in GPU.</li></ul><h3>Find out more by contacting us</h3><p>Contact <a href="/service/mailto:business@syme.dev"><strong>business@syme.dev</strong></a> to learn how we can help transform your operations and drive innovation in your industry.</p><h3>Reference</h3><p>[0] <a href="https://syme.dev/">https://syme.dev</a></p><p>[1] <a href="https://syme.dev/articles/blog/9/WizardLM-loves-more-overloading-rather-than-threading">https://syme.dev/articles/blog/9/WizardLM-loves-more-overloading-rather-than-threading</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=191590f7261e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A brief understanding of prompt engineering]]></title>
            <link>https://medium.com/@SymeCloud/a-brief-understanding-of-prompt-engineering-b176ba9fb2ba?source=rss-b5aea3bf72c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b176ba9fb2ba</guid>
            <category><![CDATA[aigc]]></category>
            <category><![CDATA[marketing-technology]]></category>
            <category><![CDATA[ai-writing-assistant]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[writing-prompts]]></category>
            <dc:creator><![CDATA[Eva Thompson]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 16:29:42 GMT</pubDate>
            <atom:updated>2023-09-14T16:29:42.644Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*gc6pLuRidM6Rspkv.jpeg" /></figure><p>Large language models (LLMs) have totally changed the way humans solve problems. In previous years, if you wanted a computer to do any task (like reorganizing a document or categorizing a sentence), you would need to write a program. A program is a set of step-by-step instructions written in a programming language that the computer can understand. With LLMs, you no longer need programs to solve problems. All you need is some text explaining what you want the computer to do. For example, you can have an LLM rearrange any document just by giving it instructions in plain English or another language. You could say something like “Please reformat this document for me” and it would do it right away without complex programming. LLMs have made it much simpler to get computers to help us with different jobs and challenges.</p><p>Prompt engineering is researching different ways to structure instructions or questions (called prompts) to get language models like LLMs to perform tasks as well as possible. While there are many techniques, this overview will focus on the basics of how prompting works and some key methods like zero/few-shot learning and instruction prompting. Zero/few-shot learning means training the AI with very little or no examples. Instruction prompting means clearly telling the AI what to do. As we learn about prompting strategies, we’ll get practical tips we can use right away to become better at guiding LLMs. This overview won’t explain the history or inner workings of language models, since it’s all about prompting. To really understand language models before learning about prompting, I recommend checking out other introductions I’ve written. A strong background in how language models work is important for fully grasping how to prompt them effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pbbgEOyVv-X0dPg_.png" /></figure><p>With all the hype around LLMs, we might wonder what really makes them so powerful. While there are many factors (like their large size, huge training data, feedback from people, etc.), a big strength is that LLMs are experts at predicting the next word or token in text. This means many different tasks can be solved by tuning how we provide input to and get output from the models!</p><p>To solve a task, all we need to do is 1) give the model text as input that includes relevant information and 2) get the answer from the text the model generates. This same approach can be used for translation, summarization, question answering, classification, and more. But the story isn’t totally simple. The exact words and structure used in the prompt (the input text) given to the LLM can hugely impact how accurate it is. In other words, how we phrase the prompt, or prompt engineering, is extremely important.</p><h3>What is prompt engineering?</h3><blockquote>“Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently use LMs for a wide variety of applications and research topics.”<em> — </em><a href="https://github.com/dair-ai/Prompt-Engineering-Guide">Prompt Engineering Guide</a></blockquote><p>Since coming up with the right contents in the prompt is crucial for getting helpful results from an LLM, prompt engineering has become very popular recently. However, it’s a science based on trial and error — figuring out the perfect prompts usually involves educated guessing and testing things out. We can improve our prompts by keeping track of different versions over time and trying new ideas to see what works best. By experimenting with prompts and comparing the outcomes, we can discover prompts that perform well without fully understanding why yet. It involves learning through experience rather than strict formulas.</p><p>There are different options for building a prompt. But most prompts include some common parts:</p><p>Input — This is the actual data the LLM will analyze, like a sentence to translate or document to summarize.</p><p>Examples — One good way to show the LLM what to do is by giving a few specific examples of inputs and their correct outputs in the prompt.</p><p>Instructions — Instead of examples, the prompt could just clearly tell the LLM what to do in words.</p><p>Markers — It helps if the prompt has a predictable structure, so we might separate parts using markers to make it clear.</p><p>Context — In addition to the above, sometimes we want to provide more general “context” or background information to the LLM in the prompt as well.</p><p>The key parts are usually the input data, examples or instructions, and optionally markers or context. But prompts are flexible — there are different ways to construct one.</p><p>Keep it simple: Start with a basic prompt, then slowly make small changes and check the results.</p><p>Be direct: If you want the LLM to do something specific like use a certain format, say it clearly up front. Explicitly stating your goal gets the message across best.</p><p>Be specific: Vagueness hurts prompts. Give details but don’t overload the prompt with too much information. There’s a limit to how long it can be.</p><p>Examples are strong: If it’s hard to describe what you want, concrete samples of correct outputs for different inputs can help show the LLM what to do.</p><p>The details vary based on the task and model, but in general it’s good to start basic, be straightforward about your goal, provide details without being vague or adding too much, and examples can reinforce the message if words alone don’t work. Focus on simplicity, clarity and specificity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cwCkGX2v01LKvIoV.png" /></figure><p>While LLMs have become really popular recently thanks to models like ChatGPT, the idea of prompting has been around for a long time. Originally, models like GPT were trained specifically for certain tasks. Then with GPT-2, researchers started using zero-shot learning to solve many different problems with just one base model. Finally, GPT-3 showed that very large models get very good at solving tasks with just a little training, called few-shot learning. In this section, we’ll go through zero-shot and few-shot learning to better understand how they work. We’ll also cover some more advanced prompting methods. Seeing the history from GPT to GPT-2 to GPT-3 helps explain how prompting has evolved over time as language models have grown larger and more capable.</p><h3>Zero-Shot Learning</h3><p>The concept behind zero-shot learning is quite straightforward. We provide the LLM with a description of the task to complete along with the relevant input data, then have it generate an output. Because LLMs are pretrained on such huge amounts of text, they are often able to solve tasks this way without any fine-tuning or examples. Essentially, they can tap into what they already know to accomplish a variety of jobs. As the examples below show, even something as relatively small as GPT-3.5 was capable of zero-shot learning for different problems simply by being given a prompt describing the task.</p><p>Zero-shot learning was tested a lot with models like GPT-2 and it works well sometimes. But what if it doesn’t solve our task? Often we can hugely boost how well an LLM does the job by giving it more direct and specific details. In particular, adding samples of the wanted outputs to the prompt lets the model learn patterns from examples shown right in the prompt. If zero-shot learning fails, providing examples for the LLM to mimic is a good next step. Seeing cases of correct responses helps the model replicate the right behavior, leading to better performance than descriptive text alone.</p><h3>Few-Shot Learning</h3><p>Instead of solely relying on a task description, we can improve our prompt by including clear examples of real inputs and their ideal outputs. This idea underpins few-shot learning, which aims to boost how well an LLM does a job by showing it concrete samples of accurate responses. When done right and paired with a powerful model, few-shot learning is extremely helpful, as evidenced by how effective language models such as GPT-3 became; as shown below, even just a few examples allowed them to solve complex problems. By demonstrating the correct behavior, few-shot learning regularly achieves better results than descriptions alone and was a major factor in recent advancements in large language model capabilities.</p><p>But using few-shot learning with LLMs effectively can be complicated. Which examples should we provide? Is there a proper way to structure the prompt? Do small changes significantly impact the model?</p><p>Most LLMs are sensitive to how the prompt is constructed, so prompt engineering is important but difficult. While newer models like GPT-4 seem less sensitive to minor variations, research has offered some tips for few-shot learning that are still useful to know:</p><p>The order of examples matters — changing the sequence can greatly change performance. Adding more examples doesn’t solve this.</p><p>The distribution of labels in examples should match real data. Surprisingly, the labels don’t need to be perfect.</p><p>LLMs tend to repeat the last example due to recency bias.</p><p>Examples in the prompt should be varied and in random order.</p><p>Carefully selecting diverse examples and avoiding biases like repeating the final one can improve few-shot learning results. Prompt construction is critical.</p><p><strong>few-shot learning vs. fine-tuning. </strong>Before moving forward, I want to clear up a common misunderstanding. Few-shot learning is different than fine-tuning. With few-shot learning, examples are included right in the prompt for context, but the model itself is not changed at all. This is called “in-context learning.” Only the prompt is modified, not the model’s internal weights. Fine-tuning is when a model is explicitly retrained on a specific dataset, which does alter its parameters through backpropagation. Few-shot learning provides additional information through the prompt instead of modifying the model like fine-tuning does. The key distinction is that few-shot learning does not change the actual model.</p><h3>Instruction Prompting</h3><p>While few-shot learning is very powerful, it has a downside — examples use up a lot of the limited context window in an LLM. So we may want methods that are less token-heavy. Is it possible to just explain the right behavior verbally instead of showing samples? The short answer is yes! Giving written directions in the prompt, called instruction prompting, works well — and it’s especially effective with a certain type of LLM model.</p><p>A lot of recent LLM development has focused on getting better at following what users instruct them to do. Pre-trained models aren’t naturally good at this. But teaching models to follow instructions makes them much better at doing what people want. LLMs that are good at instruction following enable useful applications like conversational assistants that answer questions (like ChatGPT) and programming helpers (like Codex). Making models pay attention to instructions improves how aligned they are with human intent.</p><p>As discussed before, the first step to creating an LLM is pre-training the model to predict the next word in large datasets. This gives the model knowledge but doesn’t guarantee its answers will be engaging or solutions will be useful. Models also struggle following complex requests. To encourage that, we need to go beyond basic pre-training.</p><p>There are a couple ways to teach an LLM to obey instructions. For example, we can do “instruction tuning” which fine-tunes the model on examples of dialogs with instructions. Several notable models used this approach like LLaMA and its variants, all FLAN models, OPT-IML, and more. Alternatively, the three-step process of supervised training and then reinforcement learning from human feedback leads to amazing models like ChatGPT, GPT-4, Sparrow, and others. These methods help models learn to interact based on users’ guidance rather than just language patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aFSln6EhPhr_XQVk.png" /></figure><p>Here are some tips for writing effective instructions when prompting an instruction-following LLM:</p><ul><li>Be very specific and detailed in the instruction.</li><li>Avoid saying what not to do — instead focus on clearly stating what you want the LLM to accomplish.</li><li>Using markers or indicators in the prompt structure helps distinguish the instruction from other content like examples or input data. This makes the instruction clearer.</li></ul><p>The general idea is to precisely yet positively convey what task or outcome you need from the LLM. Being direct and labeling the instruction portion properly helps the model understand and carry out its directions successfully. With an LLM trained for instruction following, taking care with your guidance enables it to help in useful ways.</p><p><strong>role prompting. </strong>With role prompting, you assign the LLM a specific “role” or persona by including a short description in the prompt. For example:</p><ul><li>You are a famous mathematician</li><li>You are a doctor</li><li>You are an expert in music</li></ul><p>The text snippet that introduces the role comes at the beginning of the prompt. Then surprisingly, newer LLMs seem able to take on and stay in character for that role throughout a conversation.</p><p>So instead of just responding based on its general training, the LLM takes the perspective of being a certain type of person. This provides context that could influence its answers. Role prompting allows tailoring the LLM’s mindset and approach through the use of prompt-assigned identities. It’s a technique related to instruction prompting that offers another way to shape model behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*IE9gn2gD9nrWPwEv.jpg" /></figure><h3>Conclusion</h3><p>Zero-shot learning allows performing tasks just by providing a description, but has limits. Few-shot learning improves it by inserting examples directly into the prompt.</p><p>Instruction-following LLMs enable a more compact method called instruction prompting, which explains the desired behavior textually rather than via consuming examples. But models need special training to follow instructions well.</p><p>Prompt engineering skills develop over time as new models arrive, but some approaches consistently help. Start simply and get more complex slowly. Be specific without being long-winded. And usually using techniques like few-shot learning, instruction prompting, or more advanced methods works best.</p><p>The ability to leverage LLMs depends a lot on crafting the right context for them through prompting. While optimal methods vary, principles like starting basic, avoiding vagueness, and leveraging examples or instructions can maximize success across different tasks and models. Prompt design is key to fulfilling the potential of these versatile tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b176ba9fb2ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just give it up, no one cares about security]]></title>
            <link>https://medium.com/@SymeCloud/just-give-it-up-no-one-cares-about-security-37d976c3b5bf?source=rss-b5aea3bf72c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/37d976c3b5bf</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[entrepreneur]]></category>
            <dc:creator><![CDATA[Eva Thompson]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 21:44:01 GMT</pubDate>
            <atom:updated>2023-09-07T21:44:01.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*OiAgG_oiULOJb06-mTVnug.png" /></figure><p>As I walked into that office, a heavy sense of pressure seemed to hang in the air.</p><p>A slim yet dignified middle-aged man personally poured me a cup of tea. The one receiving me was the deputy factory manager of this client, who had his hands in nearly all operational matters of the factory. He seemed a leader who liked to oversee things himself. Even in the brief moment it took to pour tea, he was signing a document for a security guard who had come to apply for funding. This level of hands-on involvement surprised me for a client leader of his stature. He carried himself with approachability and always made sure to handle things in person, His down-to-earth style left an impression of a leader who preferred rolling up his sleeves to getting others to do the work.</p><p>This was the first time in my life visiting an enterprise of such scale and renown. Its reputation throughout the country was deafening, even though it was just one subordinate factory within the larger conglomerate. Yet even as a subsidiary plant, its economic influence over the local area was immense, almost monopolistic. I could sense the enormous importance and weight this factory carried in the region as I walked through its expansive facilities. Being granted a tour of such an consequential operation was truly an impressive experience I will not soon forget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*VG7J9gv8hWMIy1Q-w6YgIw.png" /></figure><p>As a developer-born entrepreneur, I confess such an experience left me feeling rather tense and stiff.</p><p>“So..what’s your company, again?”<br>It’s the third time he asked so. In just 10 minutes.</p><p>Our conversation was occasionally interrupted as he needed to either sign documents or give verbal instructions. Yet he was always adding more tea to my cup, even before I’d had a chance to take a sip, It seemed he used the act as a subtle yet deliberate signal to refocus our discussion. Then ask me the same question one more time.</p><p>“We’re a startup focused on AI-Infra. We provide on-prem private AI solution based on opensource large language model, maybe you’ve tried ChatGPT…”<br>Acting swiftly to seize this unexpected opportunity, I retrieved my IPad Mini from my bag and set up the pitch deck I had prepared in advance. Placing it before him on the table, I began introducing our company as he listened attentively.</p><p>The font size is dammit small on the 7.69 inches iPad Mini screen!<br>I uttered a silent curse in my brain.</p><p>However, he did not seem concerned with the size of the text on screen. Instead, he leaned in closely with tea cup in hand, listening intently while carefully reading every word on the slides.</p><p>“…that’s how we make it work, and we’ve learned about the certain sceanario in your department may need an automated solution to reduce the human interfere…”<br>5 minutes! He didn’t stop me. That’s the chance I can come to the unique feature of the product!</p><p>“If what you said is true, there may indeed be some applicability for this approach.“<br>Sitting up straighter and leaning forward slightly, he offered, “We’ve been getting a lot of pitches for similar offerings lately. In fact, many that have come across my desk don’t seem entirely sound.”</p><p>“We actually considered privacy and data security for enterprise customers, please see this graph…”<br>Finally! This is the part of our story that I take most pride in. From the beginning, my vision was to build a cloud-native AI-Infra company focused on empowering organizations with privately held, yet responsibly governed AI. One of our founding principles acknowledges that in the future, not only will everyone have their own private AI, but these systems must respect privacy and ensure data security. The rationale is quite simple — once humans digitize their experiences into AI avatars, the security of these creations will become a threat not just to individuals and families, but societies at large.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*E6VLpEJOARORQ3NEYF2V-g.png" /></figure><p>From my perspective, for companies investing substantial time and financial resources to digitize core data and worker experiences into proprietary AI systems, wouldn’t diligently protecting those assets be only prudent? Surprisingly, he did not respond to this point directly, but instead inquired about other aspects of our proposal.</p><p>I couldn’t help but gently point out to him that privacy compliance and data security should be mandatory investment priorities, not optional considerations. To emphasize my point, I briefly recounted a few salient examples where lapses in these areas negatively impacted companies. My aim was not to lecture, but to highlight risks our solutions are designed to help mitigate. While respecting his wisdom and authority, I felt a duty to bring additional relevant perspectives to the discussion. By weaving real-world instances into our dialogue, I hoped he would see both strengthened commercial rationale and societal importance for the protections we advocate.</p><p>Suddenly, he turned to me with an impassive expression and spoke in a tone seeming to test for sales gimmicks: “My data resides in-house. Why would there be security issues if we already have robust systems in place?”</p><p>I offered a relevant example in response. There was a case, I explained, of an disgruntled employee at a company who was laid off. Seeking revenge, the individual maliciously deleted the company’s entire database, crippling their operations. While the perpetrator was eventually brought to justice, the company nevertheless collapsed as a result of being unable to recover quickly from such a catastrophic breach. With this example, I attempted to demonstrate that while many security measures can defend against outside attacks, they may not always protect against insider threats. Merely keeping data in-house cannot singularly guarantee safety. No protective systems are infallible, as clever adversaries will exploit unforeseen cracks, whether external or internal.</p><p>“That’s bullshit!”<br>He seemed caught off guard by the example, abruptly responding before rising to fetch water and refill our tea cups. Upon sitting again, he repeated the phrase in an contemplative tone.<br>“That’s bullshit!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*Og_DRgtX5FkxdHEVGanhFg.png" /></figure><p>Well, it is impossible to persuade someone who refuses to accept factual reality. In the case of such a prominent organization with an exceptionally low employee turnover rate, this town’s residents would give anything for a job there in a heartbeat. The local government itself must stay in their good graces. Under such conditions, he seems to be confident enough to reject the fact.</p><p>However, no one can thrive without respecting the facts.</p><p>I think I should stop while I’m ahead. Since they are only interested in the AI core, I should just let them be and give the customer what they want. After all, I’m here to do business, not to baby-sit them.</p><p>I promptly steered the conversation toward aspects he was more interested in. Eventually, he arranged for his IT manager to liaise with me, allowing us to delve into more in-depth discussions.</p><p>Yet I still believe in my ideals — that sooner or later, people will realize that constructing a truly valuable AI system goes hand in hand with privacy protection and data security. They are an integrated whole, otherwise it could never become a successful product. Without them, it remains merely a shoddy, temporary draft.</p><p>But before the day come, I have to say, just give it up, no one cares about security.<br>Unless they feel painful someday.</p><p><strong>Reference from</strong> <a href="https://nalaginrut.com/archives/2023/09/07/just%20give%20it%20up%2c%20no%20one%20cares%20about%20security">https://nalaginrut.com/archives/2023/09/07/just%20give%20it%20up%2c%20no%20one%20cares%20about%20security</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37d976c3b5bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The concern about LLM knowledge base and the possible solution]]></title>
            <link>https://medium.com/@SymeCloud/the-concern-about-llm-knowledge-base-and-the-possible-solution-7c212d2e8f99?source=rss-b5aea3bf72c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c212d2e8f99</guid>
            <category><![CDATA[knowledge-base-software]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[aigc]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <dc:creator><![CDATA[Eva Thompson]]></dc:creator>
            <pubDate>Mon, 04 Sep 2023 17:47:25 GMT</pubDate>
            <atom:updated>2023-09-04T17:47:25.436Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*7qLYmLMjCOwa8BN1vEjdIw.png" /></figure><h3>What is LLM knowledge base?</h3><p>Advances in AI have brought remarkable progress in a key area of artificial intelligence known as large language models (LLMs). LLMs are neural networks trained on massive amounts of text data using techniques like attention and transformer architectures. This allows them to understand, reason with, and generate human language at unprecedented scales.</p><p>LLM knowledge base is one of the popular applications of AIGC. Their huge scale and broad training allow LLMs to understand complex topics, recall precise factual information, and engage in natural conversations. When properly guided, they can serve as extremely useful tools for open discussion, information sharing, and collaborative learning.</p><p>One of the key benefits of an LLM knowledge base is its ability to digitize and preserve human experiences and knowledge virtually forever. Ordinarily, such rich human experiences and insights might only be passed down interpersonally. But an LLM ensures they can be archived, indexed, and readily accessed by future generations to inform, educate, and inspire. Even after individuals are no longer living, their real-world wisdom and stories may live on through the knowledgebase thanks to the LLM’s role as a kind of digital oral historian.</p><p>The knowledge base also provides a centralized repository for aggregating human knowledge and data at massive scales. Disparate facts, stories, and perspectives from countless interactions are organized and searchable, creating an exponentially growing treasury of human information. This digital archive has enormous potential to propagate our collective understanding through time in a permanent, easily accessible manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*DhhItt_ge1auu9lR.png" /></figure><h3>Why does it matter?</h3><p>YC has funded <a href="https://www.ycombinator.com/launches/IaL-superpowered-ai-knowledge-base-as-a-service-for-llm-applications">superpower.ai </a>which is a Knowledge base as a service (KaaS) company. Simply upload files (including audio) to a Knowledge Base, and then you can begin querying! We handle the text splitting, embeddings calculation, vector database uploading, etc. for you. This output can then be added to the prompt of your LLM-based application to dramatically improve your LLM responses. Accepted file types: .pdf, .docx, .txt, .md, .mp3, .m4a, .wav.</p><p>Someone even said <a href="https://stackoverflow.blog/2023/07/06/why-knowledge-management-is-foundational-to-ai-success/">knowledge management is foundational to AI success</a>. <a href="https://arxiv.org/pdf/2101.12294.pdf">Research from MIT</a> has shown that integrating a knowledge base into a LLM tends to improve the output and reduce hallucinations. This means that AI and ML advancements, far from superseding the need for knowledge management, actually make it more essential.</p><h3>What are the concerns?</h3><p>The flavor of LLM knowledge base can be roughly separated into two groups:</p><ol><li>Call public cloud service/SaaS, like ChatGPT.</li><li>Inference with local LLM implementation, like Llama2.</li></ol><p>The first approach is simpler to implement but is not suitable for enterprise-level applications that require strict data security and compliance. With this approach, users’ data would have to cross security boundaries and be sent to external servers operated by the service provider. This poses huge security risks by exposing sensitive internal data to the outside world. Additionally, it raises serious compliance issues since the data would no longer be within the enterprise’s direct control and oversight regarding privacy regulations. For enterprises with rigorous security and legal requirements, such an external data handling model would therefore not be appropriate or compliant. This can not be simply solved by data encryption and TLS.</p><p>The second approach is relatively more complex to implement as it requires managing computational workloads using customers’ on-premises hardware resources, which may have limited processing power depending on budget constraints. However, a key benefit is that sensitive user data remains securely stored within customers’ internal servers and private networks, avoiding the data security risks of external hosting. The primary remaining challenge then is ensuring stringent safety and privacy protections for data residing on customers’ servers, such as through access controls, encryption, auditing, and compliance with regulatory standards. While technically more difficult, this internal hosting model may be preferable from a security and compliance standpoint for enterprises with strict data governance requirements.</p><h3>Does it really matter?</h3><p>It’s worth considering the serious implications if customers were to invest significant resources into digitizing and storing their most valuable human experiences and workplace insights within an internal database, only to potentially lose that data through a security breach or incident. Not only would such a loss undermine the primary purpose and return on investment of the knowledge base initiative, but it could also provide competitors with access to sensitive intellectual property and strategic information. Given how critically important and challenging it is to protect such uniquely valuable digital archives, organizations must ensure extremely robust security safeguards, access controls, backup/failover redundancies, compliance procedures, and incident response planning are rigorously implemented and maintained to help prevent or mitigate potential data loss scenarios from being realized. The risks may well outweigh the benefits if data security cannot be guaranteed to an exceedingly high standard.</p><h3>Possible solution?</h3><p>As I said, data encryption, network isolation, containerization, and TLS are too weak for such precious data.</p><p>Network isolation can’t prevent the inner spy.</p><p><a href="https://syme.dev/articles/blog/3">Containerization security is just a dream.</a></p><p>The data encryption has to be decrypted in the RAM, what if the cracker dumps the RAM?</p><p>What if the spy steals the hard disk directly?</p><p>What if the OS kernel has a fatal CVE? That means your all protections are gone instantly.</p><p>Does your LLM solution have a security baseline?</p><p>…etc.</p><p>I think there are 3 things need to do, from simpler to harder:</p><ol><li><strong>Security baseline</strong> for the solution.</li><li><strong>Linux kernel vaccine</strong>. Make sure your kernel has no problem first, otherwise, you’ll have a <a href="https://en.wikipedia.org/wiki/Ouvrage_Schoenenbourg">Maginot Line Fort Schoenenbourg</a>.</li><li><strong>TPM (Trusted Platform Module)</strong> based on open-source firmware. This can help if the spy steals the hard disk directly. And it’s useless if they do so.</li></ol><p>However, we don’t see any of these in the product description in the current industry. Even <a href="https://openai.com/blog/introducing-chatgpt-enterprise">ChatGPT Enterprise</a> and that’s all protections they provide for the enterprise-level product:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*BqcyoQONAypd-mUXLmlthw.png" /></figure><p>For <strong>superpower.ai</strong>, we don’t even find security considerations for their solution. Here’s the <a href="https://superpoweredai.notion.site/">document</a>.</p><p>In <a href="https://syme.dev/">SymeCloud</a>, we have all three for <a href="https://syme.dev/articles/misc/alexon">Alexon EE</a>. The notable part is the Linux kernel vaccine, <a href="https://hardenedvault.net/blog/2022-06-16-ved-community-version/">VED (Vault Exploit Defense)</a>. VED is a fabulous security enhancement to prevent <a href="https://www.redhat.com/en/topics/security/container-security">container escape</a>.</p><h3>Final words</h3><p>I hope all the enterprise-level LLM product has sufficient security consideration. Especially the on-prem private cloud LLM solution.</p><p>With so much hanging in the balance, data security can never be an afterthought or optional consideration for mission-critical internal systems. Only by making the protection of customers’ most valuable intellectual property the number one driver of product development will organizations be able to fully trust these advanced technologies with their crown jewels. If proprietary human expertise is to be mined and scaled through AI, security must be beyond reproach. Our most sensitive data demands nothing less.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c212d2e8f99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Play Llama2 and play it well]]></title>
            <link>https://medium.com/@SymeCloud/play-llama2-and-play-it-well-2d143f4164ac?source=rss-b5aea3bf72c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d143f4164ac</guid>
            <category><![CDATA[llama-2]]></category>
            <category><![CDATA[prompting-technique]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Eva Thompson]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 18:07:44 GMT</pubDate>
            <atom:updated>2023-09-02T18:07:44.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Chat with AI be like…" src="https://cdn-images-1.medium.com/max/512/0*cB1J0r4Yl4CtZk_U.png" /></figure><p>Effectively engaging with large language models such as Llama 2 requires deliberate technique. In this article, I will share the knowledge I have gained from extensively experimenting with Llama 2 on how to optimize user prompts, decide when to utilize specific Llama variants versus ChatGPT, understand how system prompts function, and provide additional best practices. Some of the topics that will be covered include formatting prompts for conversational chat, determining when each Llama model variant is most suitable, identifying scenarios where ChatGPT may be preferable to Llama, explicating how system prompts guide the language model’s responses, and offering other helpful suggestions and strategies. The goal is to demystify interacting with these advanced AI systems and provide actionable guidance drawn from hands-on experience exploring Llama 2’s capabilities and limitations.</p><h3>Choose Llama2 ChatBot implementation</h3><p>In this post, we use Llama2 7B for the test. If you don’t have a Llama2 7B implementation, I’ll recommend <strong>SymeChat</strong> which is the cheapest ChatBot solution in the world, only $4/mon. And you may stop the instance to avoid AWS cloud cost ($0.08/hour for on-demand).</p><p>You may find it here: <a href="https://aws.amazon.com/marketplace/pp/prodview-gzehsbllm3q3o">https://aws.amazon.com/marketplace/pp/prodview-gzehsbllm3q3o</a></p><p>And the release news here: <a href="https://syme.dev/articles/news/0">https://syme.dev/articles/news/0</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdg4uoan_ju6dMO2-x5kHA.png" /><figcaption>SymeChat WebUI</figcaption></figure><h3>System Prompts</h3><blockquote>A system prompt is a block of text appended before the main prompt in a conversational setting. Its purpose is to help steer or focus the language model’s responses through guidance or limitation. Specifically, a system prompt is prepended to provide context that influences how the model understands and addresses the user’s prompt that follows. By prepending descriptive or rule-based text, system prompts effectively guide the model’s subsequent behavior in a chat environment through preemptive framing of the discussion parameters or boundaries.</blockquote><p>You can also use initial messages, called system prompts, to make Llama act in a more proper way for work. Try system prompts like “Pretend you’re answering manual questions” or “You’re talking to experts.” Llama 2 is really good at following the system prompts. The people who made it meant for that to happen. By starting with a system prompt, you can get Llama to use more serious and correct language when discussing complicated topics. It doesn’t do this by chance — the creators intentionally built Llama to pay attention to those opening messages.</p><p>You can also use system prompts to make Llama respond in a more professional manner. Try prompts like “Pretend you are answering questions about instruction manuals” or “You are talking to experienced users.” Llama 2 is very good at following the rules given by system prompts. The designers made Llama this way on purpose. By giving it a system prompt up front, you can steer Llama towards using more knowledgeable and appropriate language when talking about technical topics. It doesn’t just do this by accident — the programmers intentionally created Llama to pay attention to these initial context-setting prompts.</p><p>For most chat apps, you’ll want some way to guide the language model. Besides custom training, system prompts are a good way to do this. System prompts are very useful for telling Llama 2 who it should pretend to be or rules for how it answers. I often use prompts like:</p><p>“Act as if…” — to set the situation</p><p>“You are…” — to define the role</p><p>“Always/Never…” — to set limitations</p><p>“Speak like…” — to choose a style of talking</p><p>Without changing its actual code, system prompts give good control over how Llama 2 responds. They allow setting the context before each chat to direct the conversation in a certain way.</p><p>Keep the initial message (system prompt) as short as you can. Remember that it takes up part of the room in the chat window. And remember, figuring out good system prompts is more like creative work than an exact science. Even the Llama developers are still learning what prompts work best. So experiment with all different kinds of prompts! Don’t be afraid to try new things and see what happens. The best way to find really effective prompts is through trial and error.</p><h3>The Chat Prompts format matters</h3><p>f you are making a chat app with multiple user and Llama replies back and forth, you need to flag the start and end of what the user types. Use [INST] at the beginning of the user input and [/INST] at the end. The stuff Llama says back shouldn’t be marked.</p><p>[INST] and [/INST] help identify what was typed by the user so Llama knows how to respond properly. Without these markers around the user text, Llama may get confused about whose turn it is to reply.</p><pre>correct_prompt = &quot;&quot;&quot;\<br>[INST] Hi! [/INST]<br>Who are you?<br>[INST] Could you help me with a task? [/INST]<br>&quot;&quot;&quot;</pre><p>In this case, the text between[INST] and [/INST] will be ignored since it’s considered to be said by the user. The actual available text is “Who are you?”, so the Llama2 AI will answer similarly to this:</p><blockquote>Hello! I’m just an AI, I don’t have personal information or identity, so I cannot provide details about myself. However, I’m here to help you with any questions or tasks you may have. Please feel free to ask me anything, and I will do my best to assist you. How can I help you today?</blockquote><h3>Prompting Tips</h3><p>Temperature affects how varied the responses are. A higher temperature means the same question would get very different answers each time. It’s like a “hot” Llama that never gives you the same response twice! When the temperature is up high, the model is more willing to try new, unexpected things in its replies. This creates more novel and random-seeming output compared to running the same prompt over and over. So temperature controls how consistent versus random the language model’s replies will be.</p><p>In SymeChat, you may tweak the <strong>temperature</strong> and other parameters for better prompting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6FoIVUUtcJ8DVO9Bv8oIA.png" /><figcaption>SymeChat options</figcaption></figure><p>Too hot, and your output will be bizarre (but kinda poetic?)</p><p>Too cold, and you’ll get bored to death.</p><p>But that doesn’t mean you shouldn’t try adjusting the temperature. For creative things (like making up a story), turn it up high. Higher temperature leads to more unique replies each time. A lower temperature works better when you need the same answers over and over (like looking up facts or helping customers). Play with different temperatures to see which one fits what you’re trying to do. Raising or lowering it can produce different types of outputs depending on your goal. Don’t be afraid to experiment!</p><h4>Try telling Llama to think step-by-step or giving it an example</h4><p>We can adjust our prompt by asking Llama to A) think step-by-step, and B) by giving it an example (this is called a one-shot prompt):</p><pre>How many vowels in each color of the rainbow? <br>Work step by step letter by letter. For example, for &quot;red&quot;, <br>I want you to write:<br><br>    1. r. consonant<br>    2. e. vowel<br>    3. d. consonant<br>    total vowels: 1<br>  </pre><p>And we may get:</p><pre> Sure! Here&#39;s the breakdown of vowels for each color of the rainbow, <br> step by step:<br><br>1. Red<br>    * R. consonant<br>    * E. vowel<br>    * D. consonant<br>    Total vowels: 1<br>2. Orange<br>    * O. vowel<br>    * R. consonant<br>    * A. vowel<br>    * N. consonant<br>    * G. consonant<br>    Total vowels: 2<br>3. Yellow<br>    * Y. consonant<br>    * E. vowel<br>    * L. consonant<br>    * O. vowel<br>    * W. consonant<br>    Total vowels: 2<br>4. Green<br>    * G. consonant<br>    * R. consonant<br>    * E. vowel<br>    * E. vowel<br>    Total vowels: 2<br>5. Blue<br>    * B. consonant<br>    * L. consonant<br>    * U. vowel<br>    * E. vowel<br>    Total vowels: 2<br>6. Indigo<br>    * I. vowel<br>    * N. consonant<br>    * D. consonant<br>    * G. consonant<br>    O. vowel<br>    Total vowels: 2<br>7. Violet<br>    * V. consonant<br>    * I. vowel<br>    * O. vowel<br>    * L. consonant<br>    E. vowel<br>    Total vowels: 3<br><br>I hope this helps!</pre><h3>Hints in Llama2 paper</h3><p>In Llama 2’s research paper, the authors give us some inspiration for the kinds of prompts Llama can handle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z-i-SW-BB03cbYdo.png" /></figure><h3>The conclusion</h3><p>I’m working in <a href="https://syme.dev/">SymeCloud Limited</a> as a product manager. We provide on-prem AI private cloud service based on open-source LLM. IMO, the AI-Infra is important, however, it’s also important to research how to talk to the AI wisely. It’ll bring a better experience for the users, and I’ll write more posts about it. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d143f4164ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>