<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shubham Raj</title>
    <description>The latest articles on DEV Community by Shubham Raj (@shubhamraj216).</description>
    <link>https://dev.to/shubhamraj216</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1377117%2F47266081-7f30-470f-865a-a944442c3384.png</url>
      <title>DEV Community: Shubham Raj</title>
      <link>https://dev.to/shubhamraj216</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shubhamraj216"/>
    <language>en</language>
    <item>
      <title>[ASK] LLM finetuning</title>
      <dc:creator>Shubham Raj</dc:creator>
      <pubDate>Sat, 23 Mar 2024 10:07:32 +0000</pubDate>
      <link>https://dev.to/shubhamraj216/ask-llm-finetuning-5d9</link>
      <guid>https://dev.to/shubhamraj216/ask-llm-finetuning-5d9</guid>
      <description>&lt;p&gt;Hi community,&lt;/p&gt;

&lt;p&gt;I have few questions of LLMs and finetuning. I am new to this field and this might be noob questions, but i wanted to understand this clearly.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When someone says Llama-7b. this means that it has ~7 billion parameters, right? What does these parameter mean?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.Suppose someone finetunes a 7b model with 2M tokens, does that changes the original parameter?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;I have seen people finetuning one model(say pretrained Llama-7b) with their own dataset, does that override the safetensors file? like if originally it had 3 files with 5GB size. after finetuning will the previous files be deleted? or will i get a new safetensor file with previous one still in place.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Follow up to question 3 -&amp;gt; If it overrides, wouldn't it change the original behaviour of the model? Suppose i trained on interview parameters and now if i ask "sun rises in which direction", originally it would say "East", but after finetuning, it would forget its original finetuned data, right? Precisely, what I am asking that if trained on Data D1 and then after some days i train on Data D2, will it still have context of D1. or will it forget? How to preserve the original knowledge while training with D2?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I have seen people using pipelines for LLM inferencing to get the prompt answers. With single core GPU, it is only able to answer 1 question at a time. suppose I host a server, and multiple requests starts coming, wouldn't it become a bottleneck. Is there someway to avoid this? Is multicore GPU the only answer for this?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How to boost by running on CPU. Llama cpp uses only one CPU core to get the answer for a query. Can we increase it to use all cores when there are multiple queries at same time when hosted as a server.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>llm</category>
    </item>
  </channel>
</rss>
