<?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[IBM Thailand Technology Engineering - Medium]]></title>
        <description><![CDATA[IBM Thailand Technology Engineering is a hub for Thailand’s technology community to learn, discuss, and co-create around IBM’s AI, Hybrid Cloud, and Quantum capabilities. Our objective is to share best practices, and cultivate skills that strengthen Thailand’s digital economy. - Medium]]></description>
        <link>https://medium.com/ibm-thailand-technology-engineering?source=rss----8a853dc44ebc---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>IBM Thailand Technology Engineering - Medium</title>
            <link>https://medium.com/ibm-thailand-technology-engineering?source=rss----8a853dc44ebc---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:44:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ibm-thailand-technology-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[การปรับแต่ง Granite 4.0 ด้วยชุดข้อมูลภาษาไทย]]></title>
            <link>https://medium.com/ibm-thailand-technology-engineering/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%9B%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%87-granite-4-0-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B8%8A%E0%B8%B8%E0%B8%94%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B9%84%E0%B8%97%E0%B8%A2-f406df266590?source=rss----8a853dc44ebc---4</link>
            <guid isPermaLink="false">https://medium.com/p/f406df266590</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[granite]]></category>
            <dc:creator><![CDATA[Noppakorn Kaewsalabnil]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 12:19:08 GMT</pubDate>
            <atom:updated>2025-12-02T12:19:03.975Z</atom:updated>
            <content:encoded><![CDATA[<p>ก่อนที่เราจะเริ่มการ fine-tune อยากจะมาแนะนำ Granite ให้รู้จักกันก่อน Granite เป็นโมเดลแบบ OSS หรือ Open-Source จาก IBM โดยเน้นความ <strong>reliable</strong>, <strong>ไม่หลุดประเด็น</strong>, และ <strong>Train ง่ายบนทรัพยากรน้อย</strong></p><p>สิ่งที่ทำให้มันน่าสนใจมาก คือมีหลาย scale ตั้งแต่</p><ul><li><strong>Nano</strong>: 350M และ 1B parameters</li><li><strong>Micro</strong>: 3B parameters</li><li><strong>Tiny</strong>: 7B total parameters</li><li><strong>Small</strong>: 32B total parameters</li></ul><p>โดย <strong>Granite 4.0</strong> มีการใช้สถาปัตยกรรมของ <strong>Mamba-2/transformer</strong> แบบ <strong>Hybrid</strong> ออกแบบมาเพื่อประสิทธิภาพและประสิทธิภาพการทำงานที่ยอดเยี่ยมในแอปพลิเคชันระดับองค์กร เช่น <strong>RAG (Retrieval-Augmented Generation)</strong> และ <strong>Agentic Workflow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1PwC9n4HzfQEIs2R" /></figure><p>หลังจาก IBM ได้มีการปล่อย Granite 4.0 มา โดยทางทีมต้องการที่จะทำให้ตัว model ตัวนี้สามารถรองรับภาษาไทยได้ดีมากยิ่งขึ้น โดยเริ่มจากการ์ดเล็กๆ โดยเริ่มจากการใช้ <strong>NVIDIA T4</strong> และ <strong>NVIDIA A100</strong> แล้วเจอปัญหา <strong>out of memory</strong> จนไม่สามารถทำการ fine-tune ต่อได้ และสุดท้ายย้ายไป <strong>NVIDIA H100</strong> เพื่อ fine-tune ต่อได้</p><h3>เครื่องมือที่ใช้งาน</h3><ul><li><a href="https://docs.unsloth.ai/">Unsloth</a> → เร็วที่สุดสำหรับ <strong>QLoRA</strong></li><li><a href="http://huggingface.co/">Hugging Face</a> Transformers</li><li>PEFT (LoRA)</li><li>BitsAndBytes (4bit quantization)</li></ul><h3>โมเดลที่ใช้งาน</h3><p>ในการ fine-tune จะเลือกใช้โมเดล <a href="https://huggingface.co/unsloth/granite-4.0-h-micro"><em>unsloth/granite-4.0-h-micro</em></a> มาจาก <strong>Unsloth</strong> ที่มีการ pre-trained สำหรับ chat และ ทำไมถึงเลือกใช้ <strong>Unsloth</strong> เพราะสามารถ train ได้เร็วขึ้นถึง 2 เท่า และลดการใช้ VRAM มากถึง 50% และรองรับ context ได้ยาวขึ้นถึง 6 เท่า</p><h3>ชุดข้อมูลที่ใช้งาน</h3><p>สำหรับการ Fine-tune นี้เลือกใช้ชุดข้อมูลจาก <a href="https://openthaigpt.aieat.or.th/">Open ThaiGPT</a> โดยเลือกใช้ชุดข้อมูล <a href="https://huggingface.co/datasets/openthaigpt/lexitron2_prompt_finetune"><em>openthaigpt/lexitron2_prompt_finetune</em></a> ซึ่งเป็นชุดข้อมูลจาก Lexitron 2.0 ซึ่งเป็นพจนานุกรมไทย-อังกฤษที่พัฒนาโดย <a href="https://www.nectec.or.th/">NECTEC</a></p><h3>ตัวอย่างโค้ด Fine-tune Granite 4.0</h3><pre>from unsloth import FastLanguageModel<br><br>model, tokenizer = FastLanguageModel.from_pretrained(<br>    model_name = &quot;unsloth/granite-4.0-h-micro&quot;,<br>    max_seq_length = 4096,<br>    load_in_4bit = False,<br>    load_in_8bit = False,<br>    full_finetuning = False,<br>)</pre><p>เปิด <a href="https://www.ibm.com/think/topics/lora">LoRa</a></p><pre>model = FastLanguageModel.get_peft_model(<br>    model,<br>    r = 64,<br>    target_modules = [&quot;q_proj&quot;, &quot;k_proj&quot;, &quot;v_proj&quot;, &quot;o_proj&quot;,<br>                      &quot;gate_proj&quot;, &quot;up_proj&quot;, &quot;down_proj&quot;,<br>                      &quot;shared_mlp.input_linear&quot;, &quot;shared_mlp.output_linear&quot;],<br>    lora_alpha = 32,<br>    lora_dropout = 0.05,<br>    bias = &quot;none&quot;,<br>    use_gradient_checkpointing = &quot;unsloth&quot;,<br>    random_state = 3407,<br>    use_rslora = False,<br>    loftq_config = None,<br>)</pre><p>หลังจากที่เริ่ม Train หรือ Fine-tune ไปแล้วจะมีค่า Training loss มาให้ แล้วมันดูยังไง? โดยค่าเฉลี่ยทั่วไป</p><ul><li>เริ่มต้น → <strong>1.8–2.4</strong></li><li>ช่วงกลาง → <strong>0.8–1.1</strong></li><li>จบ epoch → <strong>0.5–0.9</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pA56fYhIOk-KV1b8" /></figure><h3>ผลจริงหลังทดลอง</h3><p>จากการทดสอบกับชุดข้อมูล <a href="https://huggingface.co/datasets/openthaigpt/thai-onet-m6-exam"><em>openthaigpt/thai-onet-m6-exam</em></a><em> </em>เป็นชุดคำถามและคำตอบที่ครอบคลุมจากการทดสอบทางการศึกษาระดับชาติ (O-Net) สำหรับระดับชั้นมัธยมศึกษาปีที่ 6 (ม.6)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*vXt9NGLOL3_-mtZhmlzj5A.png" /></figure><p>หลังทดลองจริง ผมรู้สึกว่า Granite คือโมเดลที่น่าสนใจมาก เพราะมันไม่พยายามแข่งกับ LLaMA-3 หรือ Mistral ด้วย brute force แต่เลือกดีไซน์แบบ:</p><ul><li>ประหยัดทรัพยากร</li><li>เทรนง่าย</li><li>ตอบดี มีวินัย ไม่หลุดง่าย</li><li>รองรับภาษาไทยได้ดีโดยไม่ต้อง fine-tune หนัก</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f406df266590" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-thailand-technology-engineering/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%9B%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%87-granite-4-0-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B8%8A%E0%B8%B8%E0%B8%94%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B9%84%E0%B8%97%E0%B8%A2-f406df266590">การปรับแต่ง Granite 4.0 ด้วยชุดข้อมูลภาษาไทย</a> was originally published in <a href="https://medium.com/ibm-thailand-technology-engineering">IBM Thailand Technology Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secret Sprawl​ — From Software Development to Business Risks]]></title>
            <link>https://medium.com/ibm-thailand-technology-engineering/secret-sprawl-from-software-development-to-business-risks-616632c3382e?source=rss----8a853dc44ebc---4</link>
            <guid isPermaLink="false">https://medium.com/p/616632c3382e</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[hybrid-cloud]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Natthaphol]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 23:39:39 GMT</pubDate>
            <atom:updated>2025-09-15T23:55:27.750Z</atom:updated>
            <content:encoded><![CDATA[<h3>Secret Sprawl​ — From Software Development to Business Risks</h3><p>ในโลกของ Software Development อย่าง <strong>DevSecOps </strong>และ <strong>Platform Engineering</strong> ทีม มักเจอกับปัญหาที่สร้างความเสี่ยงอันดับต้น ๆ คือ <strong>Secret Sprawl</strong> — การที่ <strong>Secrets </strong>(เช่น Passwords, API Tokens, Encryption Keys, TLS/PKI Certificates) อยู่กระจัดกระจาย โดยไม่มีการควบคุมที่เหมาะสม</p><p>นี่ไม่ใช่ปัญหาด้านเทคนิคเพียงอย่างเดียว แต่คือ <strong>Business Risks</strong> เพราะ Secrets ที่หลุดการจัดการอาจถูกใช้โดย <strong>Insider Threat</strong> หรือผู้ไม่หวังดีจากภายนอก และส่งผลต่อ <strong>end customers</strong> และชื่อเสียงขององค์กรโดยตรง อย่างที่เคยเห็นเป็นข่าวอยู่บ่อยๆ</p><p>เรื่องนี้ได้ถูกอธิบายอย่างชัดเจนโดย <strong>Armon Dadgar, Co-Founder ของ HashiCorp</strong> ใน <a href="https://www.youtube.com/watch?v=DesMFSiFZgY"><em>whiteboarding session บน YouTube</em></a> ซึ่งชี้ให้เห็นว่า Secret Sprawl ไม่เพียงแต่สร้างความเสี่ยงกับทีมวิศวกรรม แต่ยังสามารถสั่นคลอนความเชื่อมั่นทางธุรกิจได้</p><h3>ปัญหาที่ซ่อนอยู่ เมื่อ Secrets กระจัดกระจายในองค์กร</h3><p>Secret Sprawl เกิดขึ้นเพราะ Secrets ไม่ได้ถูกจัดการอย่างเหมาะสม แต่กลับกระจัดกระจายในองค์กร ไม่ว่าจะเป็น:</p><ul><li><strong>Source Code Repositories</strong> — Secrets ที่ถูก hard-code ลงไปใน GitHub, GitLab หรือ Bitbucket</li><li><strong>Configuration Files</strong> — ไฟล์อย่าง .env, config.yml, application.properties ที่ software engineer ใช้งานกันทุกวัน</li><li><strong>CI/CD Pipelines</strong> — ระบบ Automation เช่น Jenkins, GitHub Actions หรือ GitLab CI ที่เก็บ Tokens ไว้เพื่อเชื่อมต่อบริการอื่น</li><li><strong>Collaboration Tools</strong> — การแปะรหัสผ่านหรือ Token ลงไปใน Slack, Microsoft Teams, JIRA หรือ Confluence</li><li><strong>Cloud &amp; Infrastructure</strong> — Credentials ที่ถูกฝังไว้ใน VM images, containers หรือ Infrastructure as Code เช่น Terraform</li><li><strong>Local Machines</strong> — การเก็บ Secrets ไว้ในไฟล์ส่วนตัว หรือ shell history บนเครื่องนักพัฒนา</li></ul><p>องค์กรแทบไม่สามารถรู้ได้เลยว่า <strong>“เรามี Secrets เก็บอยู่ที่ไหนที่ไม่เหมาะสมบ้าง?”</strong></p><h3>ทำไม Continuous Secret Observing &amp; Monitoring ถึงเป็นทางออก</h3><p>การที่จะรู้ว่า Secrets ถูกเก็บอยู่ที่ไหนบ้าง ก็ต้องทำการ scan ไม่ว่าจะด้วยการเขียน script code scanner หรือ ใช้ tools ต่างๆ แต่การสแกนครั้งเดียวไม่พอ และอาจจะไม่ครอบคลุม เพราะระบบและโค้ดเปลี่ยนตลอดเวลา Secrets ใหม่ ๆ ถูกสร้าง แชร์ และบางครั้งก็ถูกทิ้งไว้โดยไม่ได้ตั้งใจ หากไม่มีการเฝ้าสังเกตและตรวจสอบอย่างต่อเนื่อง องค์กรจะไม่มีวันรู้ได้เลยว่า Secrets กระจัดกระจายไปที่ใดบ้าง</p><p>แนวทางที่ยั่งยืนจึงคือการทำให้ <strong>Secret Observing &amp; Monitoring</strong> เป็น <strong>continuous process</strong> เพื่อให้องค์กรสามารถ:</p><ul><li>มองเห็นว่ามี Secrets อยู่ที่ไหนบ้าง</li><li>ลดความเสี่ยงจาก <strong>Unmanaged Secrets</strong></li><li>ป้องกันการถูกนำไปใช้โดย <strong>Insider Threat</strong> หรือผู้ไม่หวังดีจากภายนอก</li><li>ควบคุมวงจรชีวิตของ Secrets ได้ครบถ้วน</li></ul><h3>จากแนวคิดสู่การใช้งานจริงด้วย HCP Vault Radar</h3><p><a href="https://www.hashicorp.com/en/products/vault/hcp-vault-radar"><strong>HCP Vault Radar</strong></a> ช่วยให้องค์กรจัดการกับ Secrets ที่กระจัดกระจายในองค์กรได้จริง โดยสามารถ:</p><ul><li>ค้นหาและรวม Secrets ที่อยู่นอกการควบคุม</li><li>สร้าง <strong>Secrets Inventory</strong> เพื่อให้ทีมเห็นภาพรวมชัดเจน</li><li>ลด false positives และมี remediation workflows</li><li>เชื่อมกับ <a href="https://www.hashicorp.com/en/products/vault"><strong>HashiCorp Vault</strong></a> และ <a href="https://www.hashicorp.com/en/products/terraform"><strong>Terraform</strong></a> เพื่อการจัดการครบวงจร</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2efdYUqk_8f-uFZcSuCm3A.png" /></figure><h3>เก็บ Secrets ให้ปลอดภัย ด้วย HashiCorp Vault</h3><p><a href="https://www.hashicorp.com/en/products/vault?utm_source=chatgpt.com"><strong>HashiCorp Vault</strong></a> ไม่ได้แค่เก็บ Secrets แต่ช่วยให้องค์กรจัดการได้แบบ <strong>centralize &amp; dynamic</strong>:</p><ul><li>Rotate keys/tokens อัตโนมัติ</li><li>Enforce policies และ RBAC</li><li>ลดโอกาสที่ Secrets จะถูก hard-code หรือกระจัดกระจายในองค์กรโดยไม่รู้ตัว</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmhDE_fFG0i2C-qsGxOEsg.png" /></figure><h3>สรุป – จากปัญหาทางเทคนิคสู่ความเสี่ยงเชิงธุรกิจ</h3><p>Secret Sprawl ไม่ใช่ปัญหาของวิศวกรเพียงอย่างเดียว แต่คือ <strong>business risk</strong> ที่กระทบทั้งลูกค้า ระบบ และองค์กร</p><p>การทำ <strong>Continuous Secrets Scanning</strong> ด้วย <strong>HashiCorp Vault Radar</strong> และการใช้ <strong>HashiCorp Vault</strong> ในการเก็บและจัดการอย่างปลอดภัย คือกุญแจสำคัญที่จะช่วยลดความเสี่ยงจากทั้ง Insider Threat และผู้ไม่หวังดีภายนอก</p><p>หากอยากเจาะลึกเรื่องนี้เพิ่มเติม แนะนำให้ชม <strong>whiteboarding session โดย Armon Dadgar, Co-Founder ของ HashiCorp</strong>ได้ที่ <a href="https://www.youtube.com/watch?v=DesMFSiFZgY"><em>YouTube</em></a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDesMFSiFZgY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDesMFSiFZgY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDesMFSiFZgY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d1bf288b24c4f94237dff02144e53c4e/href">https://medium.com/media/d1bf288b24c4f94237dff02144e53c4e/href</a></iframe><p>Try Vault Radar → <a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqa1VZU3otY1RnaXdnbC1nZU5pN193MmJCMDlod3xBQ3Jtc0traS1Pc3lPRXVvSkJEYy1Pc1M4a1pvbjZ3MWRYb2NOT3l0VVVFN2tpRVFFMzB2RjdRalA4QlJ6RTBUNVhNWFZESTB2RXVfMWVTTjE0aGpMWFJzeVJxSkxWYUxNMUpxbHZ3Q2lRc1dJbGdvbHpxRmI4MA&amp;q=http%3A%2F%2Fhashicorp.com%2Fgo%2Fhcp-vault-radar&amp;v=DesMFSiFZgY">http://hashicorp.com/go/hcp-vault-radar</a></p><p>For hands-on interactive labs, visit HashiCorp Developer → <a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqazI4dUFGcnpNQko2TC1weW9Ld0ZCbTg5OHVBZ3xBQ3Jtc0trTG5jb2dRSmdqOFMybTlTVFdhcTE3S19CdllCVDBWS2FwWHF5YjB2TVAydWJ6aUdGamlXUG1kSV9RZVVfVXd4OGZDNjBpZnB1Z1FrMnFqeU8yX3hrU1I0cXZpN0ZhYkZDNmxob0J4VGxqTmFVYnZKbw&amp;q=https%3A%2F%2Fdeveloper.hashicorp.com%2F&amp;v=DesMFSiFZgY">https://developer.hashicorp.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=616632c3382e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-thailand-technology-engineering/secret-sprawl-from-software-development-to-business-risks-616632c3382e">Secret Sprawl​ — From Software Development to Business Risks</a> was originally published in <a href="https://medium.com/ibm-thailand-technology-engineering">IBM Thailand Technology Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>