<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="rss.xsl"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>Pongsak Khamdee</title><description>เทคโนโลยีเปลี่ยนไปตามกาลเวลาเหมือนอายุของคน การบันทึกสิ่งที่ค้นพบช่วยให้ผมจำรอยเท้าของตัวเองได้</description><link>https://pkhamdee.blog/th/</link><atom:link href="https://pkhamdee.blog/th/feed_rss_created.xml" rel="self" type="application/rss+xml" /> <managingEditor>Pongsak Khamdee</managingEditor><language>th</language> <pubDate>Fri, 27 Nov 2026 12:55:35 -0000</pubDate> <lastBuildDate>Fri, 27 Nov 2026 12:55:35 -0000</lastBuildDate> <ttl>1440</ttl> <generator>MkDocs RSS plugin - v1.19.0</generator> <image> <url>https://github.com/pkhamdee.png</url> <title>Pongsak Khamdee</title> <link>https://pkhamdee.blog/th/</link> </image> <item> <title>Code to Production 01: ทั้งระบบในหน้าเดียว</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 01: ทั้งระบบในหน้าเดียว { #code-to-production-01-the-system-on-one-page }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Delivery pipeline ที่ไม่เคยเห็นครบทั้งภาพ ลอกไปใช้ไม่ได้หรอก โพสต์นี้เลยกาง eShop ทั้งระบบไว้ในหน้าเดียว มี 4 service, 6 repository, 3 environment บน 1 cluster และ gate ทุกตัวที่ change ต้องผ่านตั้งแต่ issue จนถึง production&lt;/strong&gt; eShop เป็นระบบ reference ที่รันอยู่จริงบน Nutanix Kubernetes Platform อีกเจ็ดโพสต์ที่เหลือจะหยิบไปเล่าทีละส่วน อ่านโพสต์นี้ก่อน จะได้รู้ว่าเรื่องในโพสต์ถัด ๆ ไปอยู่ตรงไหนของภาพรวม&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-01-the-system-on-one-page/</link> <pubDate>Fri, 27 Nov 2026 11:59:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-01-the-system-on-one-page/</guid> </item> <item> <title>Code to Production 02: วิธีทำงานของทีม ตั้งแต่ Issue จนถึง Merge</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 02: วิธีทำงานของทีม ตั้งแต่ Issue จนถึง Merge { #code-to-production-02-ways-of-working-from-issue-to-merge }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;ใน eShop คนที่ลงมือแก้ code ของ issue #3 คือ coding agent ส่วนคนมีหน้าที่เขียน issue อ่าน 12 บรรทัด กด Merge แล้วเข้าไปดูผลใน dev&lt;/strong&gt; ทำแบบนี้ได้เพราะกฎทุกข้อเขียนไว้ใน repository และ GitLab เป็นตัวบังคับข้อจำกัด ไม่ต้องหวังว่าใครจะจำได้ โพสต์นี้เล่าข้อตกลงการทำงานของทีมทั้งหมด มีหก repository, tracker ตัวเดียว, branch อายุสั้น, commit ที่ sign ทุกตัว และขั้นตอนที่ agent ไม่มีสิทธิ์ทำ&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-02-ways-of-working/</link> <pubDate>Fri, 27 Nov 2026 11:58:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-02-ways-of-working/</guid> </item> <item> <title>Code to Production 03: CI Gate ก่อนถึงมือ Reviewer</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 03: CI Gate ก่อนถึงมือ Reviewer { #code-to-production-03-ci-gates-before-review }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;เวลาของ reviewer แพงที่สุดแล้ว eShop เลยให้เครื่องตรวจก่อน มี gate หก job รันให้เสร็จก่อนที่คนจะเปิด diff ดู ใช้เวลาแค่นาทีสองนาที&lt;/strong&gt; Gate ทุกตัวเป็น script รันบน laptop หรือใน CI ก็ได้ผลเหมือนกัน ถ้าจะยกเว้นอะไรต้องเขียนเป็นหนึ่งบรรทัด มีเหตุผลและวันหมดอายุกำกับ โพสต์นี้ไล่ดู pipeline ทั้งเส้น ดู output จริงของ gate ทีละตัว พร้อมข้อควรระวังที่เป็นที่มาของตัวกันแต่ละจุด&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-03-ci-gates-before-review/</link> <pubDate>Fri, 27 Nov 2026 11:57:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-03-ci-gates-before-review/</guid> </item> <item> <title>Code to Production 04: Image Gate และ Supply Chain</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 04: Image Gate และ Supply Chain { #code-to-production-04-image-gates-and-the-supply-chain }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Image ที่ยังไม่ได้ลองรัน ยังไม่ได้ scan และยังไม่ได้ sign จะไม่มีทางเข้าไปอยู่ใน registry ของ eShop ส่วน image ที่ไม่ได้ sign ด้วย key ของ pipeline ก็รันใน cluster ไม่ได้&lt;/strong&gt; ครึ่งแรกเป็นงานของ CI job ตัวเดียว ครึ่งหลังเป็นงานของ admission webhook ตัวเดียว โพสต์นี้ไล่ดูทั้งสองครึ่ง พร้อม log จริง และข้อควรระวังสี่ข้อที่ setup นี้กันไว้ให้แล้ว&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-04-image-gates-and-supply-chain/</link> <pubDate>Fri, 27 Nov 2026 11:56:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-04-image-gates-and-supply-chain/</guid> </item> <item> <title>Code to Production 05: Delivery และ Release จาก Dev ไป QA แล้วขึ้น Prod</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 05: Delivery และ Release จาก Dev ไป QA แล้วขึ้น Prod { #code-to-production-05-delivery-and-releases-dev-to-qa-to-prod }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Build image แค่ครั้งเดียว จากนั้น dev, QA และ prod ใช้ digest ตัวเดียวกันหมด&lt;/strong&gt; ใน eShop พอมี merge เข้า &lt;code&gt;main&lt;/code&gt; เมื่อไหร่ dev ก็ตามทันที ส่วน QA กับ prod จะขยับก็ต่อเมื่อมีคน merge promotion merge request ที่ pin image ด้วย digest อย่าง release 0.10.0 ที่ใช้เป็นตัวอย่าง นับจาก deploy ขึ้น QA จนถึง prod ที่ทดสอบผ่าน ใช้เวลาราว 12 นาที โดยไม่ต้อง build อะไรใหม่เลย&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-05-delivery-and-releases/</link> <pubDate>Fri, 27 Nov 2026 11:55:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-05-delivery-and-releases/</guid> </item> <item> <title>Code to Production 06: Platform บน NKP</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 06: Platform บน NKP { #code-to-production-06-the-platform-on-nkp }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;อะไรที่ platform มีให้ก็ใช้ให้หมด จะลงของตัวเองก็เฉพาะจุดที่ version ของ platform ใช้ไม่ได้ ส่วนการเปลี่ยนแปลงระดับ cluster ทุกอย่างรวมไว้ใน script ตัวเดียว และให้คนเป็นคนรัน&lt;/strong&gt; eShop บน Nutanix Kubernetes Platform (NKP) 2.19.1 ออกแบบ platform ไว้แค่นี้เอง โพสต์นี้จะพาดูว่า cluster จัดวางอย่างไร identity สามตัวมีอะไรบ้าง แล้วไล่ไปที่ Gateway, data และ Secret พร้อมข้อควรระวังที่แต่ละส่วนกันไว้ให้&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-06-the-platform/</link> <pubDate>Fri, 27 Nov 2026 11:54:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-06-the-platform/</guid> </item> <item> <title>Code to Production 07: Observability ตั้งแต่ Metric, Trace ไปจนถึง Alert</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 07: Observability ตั้งแต่ Metric, Trace ไปจนถึง Alert { #code-to-production-07-observability-metrics-to-traces-to-alerts }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;service ของ eShop ไม่มีโค้ด metric สักบรรทัด แต่ dashboard ก็ยังมี rate, error และ duration ของทุก route ให้ดู&lt;/strong&gt; วิธีคือ trace ทุก request แล้วเอา span มาคำนวณเป็นตัวเลข โพสต์นี้เล่าว่าตั้งค่าแบบนี้บน NKP ยังไง ใช้ query อะไรตาม request เดียวข้ามที่เก็บข้อมูลสามที่ และปิดท้ายด้วยเรื่องที่ทีมส่วนใหญ่มักข้าม คือการเฝ้าระบบ delivery เองด้วย&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-07-observability/</link> <pubDate>Fri, 27 Nov 2026 11:53:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-07-observability/</guid> </item> <item> <title>Code to Production 08: Operations, Rebuild และสิ่งที่ต้องเปลี่ยนเมื่อขึ้น Production</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Code to Production 08: Operations, Rebuild และสิ่งที่ต้องเปลี่ยนเมื่อขึ้น Production { #code-to-production-08-operations-rebuilds-and-what-production-would-change }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;ระบบ delivery จะเรียกว่าเสร็จก็ต่อเมื่อคนอื่นรับช่วงไปรันต่อได้ ต่ออายุ credential ได้ และ rebuild ทั้งระบบจาก Git ได้ แค่ deploy ผ่านครั้งแรกยังไม่นับ&lt;/strong&gt; Runbook, script และเอกสาร rebuild ของ eShop เก็บไว้ใน &lt;code&gt;eshop-infra&lt;/code&gt; ทั้งหมด เลยสร้างทั้งระบบขึ้นใหม่จาก repository ได้ โพสต์ปิดซีรีส์นี้ว่าด้วย runbook, Renovate, แผนผัง credential, troubleshooting และบอกกันตรง ๆ ว่ามีอะไรบ้างที่ใช้ได้แค่ใน lab&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/27/code-to-production-08-operations-and-caveats/</link> <pubDate>Fri, 27 Nov 2026 11:52:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/27/code-to-production-08-operations-and-caveats/</guid> </item> <item> <title>Agentic Engineering บน GitHub: ตาม ticket ใบเดียวตั้งแต่ Plan, Build, Verify จนถึง Observe</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;Agentic Engineering บน GitHub: ตาม ticket ใบเดียวตั้งแต่ Plan, Build, Verify จนถึง Observe { #agentic-engineering-on-github-one-ticket-through-plan-build-verify-observe }&lt;/h1&gt; &lt;p&gt;GitHub บอกว่าแค่สัปดาห์เดียวในเดือนตุลาคมปีนี้ มี commit เข้ามาเกิน 1.2 พันล้าน commit โตขึ้นกว่า 400% จากปีก่อน และเยอะกว่าทั้งปี 2025 รวมกันเสียอีก[^ghpost] ฝั่ง telemetry ของ Faros AI ก็เจอว่า ทีมเดียวกันพอเปลี่ยนจากใช้ AI น้อยมาใช้ AI หนัก ๆ median ของเวลาที่ PR รอ review พุ่งขึ้น 441.5%[^faros]&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Agent ทำให้การเขียนโค้ดแทบไม่มีต้นทุน แต่การ review กลับแพงขึ้น&lt;/strong&gt; โพสต์นี้จะพา ticket ขนาดงานจริงหนึ่งใบเดินผ่าน loop สี่ขั้นของ GitHub คือ Plan, Build, Verify และ Observe ทุกขั้นมี command, ไฟล์ และ setting ที่ใช้จริง พร้อมรายละเอียดที่โพสต์เปิดตัวข้ามไป&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/18/agentic-engineering-on-github-one-ticket-through-plan-build-verify-observe/</link> <pubDate>Wed, 18 Nov 2026 00:00:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/18/agentic-engineering-on-github-one-ticket-through-plan-build-verify-observe/</guid> </item> <item> <title>LLM Field Guide 01 — LLM อ่านข้อความของเรายังไง: Next-Token Prediction, Token และ Embedding</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 01 — LLM อ่านข้อความของเรายังไง: Next-Token Prediction, Token และ Embedding { #llm-field-guide-01-how-an-llm-reads-text-next-token-prediction-tokens-and-embeddings }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;LLM คือ function ที่รับ list ของเลขจำนวนเต็ม แล้วคืนความน่าจะเป็นของ token ถัดไปมาให้ครบทุกตัว จากนั้นก็เรียกซ้ำวนไปใน loop แค่นั้นเอง&lt;/strong&gt; โมเดลไม่เคยเห็นข้อความที่คุณพิมพ์ tokenizer แปลงข้อความเป็น ID ก่อน แล้ว embedding table ค่อยแปลง ID เป็น vector สามชิ้นนี้ (loop, token, vector) คือตัวกำหนดค่าใช้จ่าย งบ context และที่มาของความผิดพลาด &#34;โง่ ๆ&#34; ของโมเดลอีกเยอะกว่าที่คิด&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-01-how-an-llm-reads-text/</link> <pubDate>Fri, 06 Nov 2026 12:00:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-01-how-an-llm-reads-text/</guid> </item> <item> <title>LLM Field Guide 02 — เจาะลึก Transformer: Position, Attention และ Feed-Forward Layer</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 02 — เจาะลึก Transformer: Position, Attention และ Feed-Forward Layer { #llm-field-guide-02-inside-the-transformer-position-attention-and-feed-forward-layers }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;LLM ทุกตัวที่คุณจะ deploy ในปี 2026 คือเครื่องแบบเดียวกันหมด: decoder block ก้อนเดียว ก๊อปซ้อนกัน 28 ถึง 100 กว่าชั้น ฝั่งหนึ่งมี embedding table อีกฝั่งเป็น classifier ขนาดเท่า vocabulary&lt;/strong&gt; ใน block แต่ละก้อน attention ทำให้ token อ่านกันและกันได้ ส่วน feed-forward network เขียน token แต่ละตัวใหม่แบบตัวใครตัวมัน โดยมี RoPE คอยบอก attention ว่า token ไหนอยู่ตำแหน่งไหน เข้าใจ block นี้ครั้งเดียว คุณจะอ่าน &lt;code&gt;config.json&lt;/code&gt; ของ model ไหนก็ออก ประเมิน memory footprint ได้ และชี้ได้ว่า parameter 8 พันล้านตัวไปอยู่ตรงไหนบ้าง&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-02-inside-the-transformer/</link> <pubDate>Fri, 06 Nov 2026 11:59:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-02-inside-the-transformer/</guid> </item> <item> <title>LLM Field Guide 03 — Training และ Generation: Weight มาจากไหน และเลือก Token กันยังไง</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 03 — Training และ Generation: Weight มาจากไหน และเลือก Token กันยังไง { #llm-field-guide-03-training-and-generation-where-weights-come-from-and-how-tokens-get-picked }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;model 8B มี weight 8 พันล้านตัว ทุกตัวเริ่มจาก random noise แล้วกลายเป็นของใช้งานได้เพราะ loop เดียว: ทาย token ถัดไป วัดว่าผิดแค่ไหน ขยับ weight ทุกตัวนิดเดียว แล้ววนซ้ำราวหนึ่งล้านรอบ&lt;/strong&gt; พอถึงตอน inference model ตัวเดิมจะให้ความน่าจะเป็นของทุก token ใน vocabulary ออกมา แล้ว sampler ที่คุณตั้งเองได้ทุก request ก็หยิบมาหนึ่งตัว โพสต์นี้ไล่ทั้งสองฝั่งด้วยตัวเลขจริงบนประโยค &#34;The cat sat&#34; ตั้งแต่ logit, loss, gradient, AdamW และค่าใช้จ่ายของ pretraining run ไปจนถึง temperature, top-p, min-p, constrained decoding และเหตุผลที่ตั้ง &lt;code&gt;temperature=0&lt;/code&gt; แล้วผลก็ยังไม่ deterministic&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-03-training-and-generation/</link> <pubDate>Fri, 06 Nov 2026 11:58:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-03-training-and-generation/</guid> </item> <item> <title>LLM Field Guide 04 — Memory คือคอขวด: KV Cache, Attention Variants และ Long Context</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 04 — Memory คือคอขวด: KV Cache, Attention Variants และ Long Context { #llm-field-guide-04-memory-is-the-bottleneck-kv-cache-attention-variants-and-long-context }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;KV cache ทำให้ generation เร็ว เพราะไม่ต้องคำนวณส่วนที่ผ่านไปแล้วซ้ำ แต่ก็แลกด้วย memory ที่โตขึ้นทุก token ที่กำลังประมวลผลอยู่&lt;/strong&gt; model ขนาด Llama-3.1-8B คุยยาว 128K token แค่บทสนทนาเดียวก็กิน cache ราว 16 GiB พอ ๆ กับ weights ทั้งก้อน attention variant ใหม่ ๆ, เทคนิค serving และข้อแม้เรื่อง context length แทบทั้งหมดมีไว้จัดการ cache ตัวนี้ตัวเดียว&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-04-kv-cache-and-long-context/</link> <pubDate>Fri, 06 Nov 2026 11:57:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-04-kv-cache-and-long-context/</guid> </item> <item> <title>LLM Field Guide 05 — Prompting, Context Engineering และ RAG</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 05 — Prompting, Context Engineering และ RAG { #llm-field-guide-05-prompting-context-engineering-and-rag }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;model รู้อยู่แค่สองอย่าง คือ weights ของตัวเอง กับ token ที่คุณใส่ไว้ใน window&lt;/strong&gt; prompt engineering คือการเขียน token ชุดนั้นให้ดีในการเรียกแต่ละครั้ง context engineering คือการเลือกว่า token ไหนได้เข้า window บ้าง ส่วน RAG คือระบบที่คอยหยิบ token ที่ใช่ออกมาจาก corpus ที่ใหญ่เกินกว่าจะยัดลงไปได้หมด&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-05-prompting-context-and-rag/</link> <pubDate>Fri, 06 Nov 2026 11:56:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-05-prompting-context-and-rag/</guid> </item> <item> <title>LLM Field Guide 06 — Reasoning Model และ Agent: Thinking, Tool Calling และ MCP</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 06 — Reasoning Model และ Agent: Thinking, Tool Calling และ MCP { #llm-field-guide-06-reasoning-models-and-agents-thinking-tool-calling-and-mcp }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Model ใช้ compute แทบเท่ากันทุก token ถ้าอยากให้คิดหนักขึ้น ทางเดียวคือให้เขียน token ออกมามากขึ้น อีกข้อคือ model เรียก API เองไม่ได้เลย สิ่งที่ทำได้คือเขียนข้อความบอกชื่อ function แล้ว code ของคุณเป็นคนรันให้&lt;/strong&gt; แค่สองข้อนี้ก็อธิบาย reasoning model, tool calling, agent และ MCP ได้หมดแล้ว ที่เหลือเป็นแค่ปุ่มปรับ, &lt;code&gt;while&lt;/code&gt; loop หนึ่งตัว และ wire protocol อีกหนึ่งตัว&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-06-reasoning-models-and-agents/</link> <pubDate>Fri, 06 Nov 2026 11:55:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-06-reasoning-models-and-agents/</guid> </item> <item> <title>LLM Field Guide 07 — เลือก Base Model: ตระกูล Open-Weight, License และโมเดลภาษาไทย</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 07 — เลือก Base Model: ตระกูล Open-Weight, License และโมเดลภาษาไทย { #llm-field-guide-07-choosing-a-base-model-open-weight-families-licenses-and-thai-models }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;การเลือก base model คือการตัดสินใจที่แพงที่สุดในโปรเจกต์ fine-tuning แต่หลายทีมเลือกกันจบในบ่ายเดียว&lt;/strong&gt; พอเลือกแล้ว tokenizer, ค่า hardware, context length และสิ่งที่ฝ่ายกฎหมายยอมให้ ship ก็ล็อกตามไปหมด โพสต์นี้พาไล่ดูตระกูล open-weight ช่วงปลายปี 2026 วิธีอ่าน license และวิธีเลือกตัวตั้งต้นที่ใช้ภาษาไทยได้&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-07-choosing-a-base-model/</link> <pubDate>Fri, 06 Nov 2026 11:54:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-07-choosing-a-base-model/</guid> </item> <item> <title>LLM Field Guide 08 — การปรับแต่ง Model: Continued Pretraining, Fine-Tuning, Alignment และ Distillation</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 08 — การปรับแต่ง Model: Continued Pretraining, Fine-Tuning, Alignment และ Distillation { #llm-field-guide-08-adapting-a-model-continued-pretraining-fine-tuning-alignment-and-distillation }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Continued pretraining สอน model ว่าต้องรู้อะไร Fine-tuning สอนว่าต้องวางตัวยังไง Alignment สอนให้แยกออกว่าคำตอบไหนดีกว่า ส่วน Distillation ยกทั้งสามอย่างจาก model ใหญ่ไปใส่ model เล็ก&lt;/strong&gt; เลือกผิดวิธีเมื่อไหร่ ก็เผา GPU ไปหลายสัปดาห์กับปัญหาที่วิธีนั้นแก้ไม่ได้ตั้งแต่แรก โพสต์นี้เริ่มจาก decision framework แล้วตามด้วย recipe ที่รันได้จริงของแต่ละวิธี&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-08-adapting-a-model/</link> <pubDate>Fri, 06 Nov 2026 11:53:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-08-adapting-a-model/</guid> </item> <item> <title>LLM Field Guide 09 — ทำให้เล็กลงและเร็วขึ้น: Quantization, Mixture of Experts และ Speculative Decoding</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 09 — ทำให้เล็กลงและเร็วขึ้น: Quantization, Mixture of Experts และ Speculative Decoding { #llm-field-guide-09-making-it-smaller-and-faster-quantization-mixture-of-experts-and-speculative-decoding }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;มีสามท่าที่ทำให้ model รันถูกลงโดยไม่ทำให้โง่ลง คือเก็บ weight ด้วย bit ที่น้อยลง ใช้ weight ต่อ token น้อยลง และได้ token ต่อรอบมากขึ้น&lt;/strong&gt; Quantization ทำให้ model เล็กลงและเร็วขึ้น 2–4 เท่า MoE ให้คุณภาพระดับ model ใหญ่แต่กิน compute เท่า model เล็ก ส่วน speculative decoding ลด latency ได้ 2–3 เท่าโดย output ไม่เปลี่ยนเลยสักตัว ทุกท่ามีราคาที่ต้องจ่าย โพสต์นี้จะชี้ให้ดูว่าจ่ายตรงไหน&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-09-making-it-smaller-and-faster/</link> <pubDate>Fri, 06 Nov 2026 11:52:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-09-making-it-smaller-and-faster/</guid> </item> <item> <title>LLM Field Guide 10 — Serving ในระดับ Scale: Multi-GPU Parallelism และ Inference Engine</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 10 — Serving ในระดับ Scale: Multi-GPU Parallelism และ Inference Engine { #llm-field-guide-10-serving-at-scale-multi-gpu-parallelism-and-inference-engines }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;การใช้ multi-GPU ทุกแบบคือการแลก แบ่ง model เพื่อให้ใส่ลงหรือให้เร็วขึ้น แล้วจ่ายคืนเป็นค่า communication&lt;/strong&gt; เลือกวิธีแบ่งที่ interconnect รับไหว GPU 8 ใบจะทำงานเหมือน GPU ใบใหญ่ใบเดียว เลือกผิดเมื่อไหร่ ก็ได้ GPU เล็ก ๆ 8 ใบที่นั่งรอกันเอง ส่วน hardware ชุดนั้นจะให้ 50 tokens/s หรือ 5,000 ขึ้นอยู่กับ inference engine ว่าทำ batching, จัดการ memory แบบ paging และเลือก kernel ได้ดีแค่ไหน&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-10-serving-at-scale/</link> <pubDate>Fri, 06 Nov 2026 11:51:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-10-serving-at-scale/</guid> </item> <item> <title>LLM Field Guide 11 — Safety และ Evaluation: Guardrails กับการพิสูจน์ว่า model ดีขึ้นจริง</title> <author>Pongsak Khamdee</author> <description>&lt;h1&gt;LLM Field Guide 11 — Safety และ Evaluation: Guardrails กับการพิสูจน์ว่า model ดีขึ้นจริง { #llm-field-guide-11-safety-and-evaluation-guardrails-and-proving-a-model-got-better }&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;model ที่ผ่าน alignment มาแล้วไม่ได้ทำให้ระบบปลอดภัยเอง และประโยค &#34;model ใหม่ดีกว่า&#34; ส่วนใหญ่ก็เป็นแค่ noise&lt;/strong&gt; alignment หลุดตรงไหน guardrail ช่วยจับ ถ้า agent โดน prompt injection architecture จะเป็นตัวจำกัดว่าทำอะไรได้แค่ไหน ส่วนสถิติแบบ paired บอกได้ว่าคะแนนที่ขึ้นมา 1.5 แต้มเป็นของจริงหรือแค่บังเอิญ โพสต์นี้พูดถึงงานสองฝั่งของการ ship: คุม model ให้อยู่ในกรอบ และพิสูจน์ให้ได้ว่าสิ่งที่เปลี่ยนช่วยได้จริง&lt;/p&gt;</description> <link>https://pkhamdee.blog/th/2026/11/06/llm-field-guide-11-safety-and-evaluation/</link> <pubDate>Fri, 06 Nov 2026 11:50:00 +0000</pubDate> <source url="https://pkhamdee.blog/th/feed_rss_created.xml">Pongsak Khamdee</source><guid isPermaLink="true">https://pkhamdee.blog/th/2026/11/06/llm-field-guide-11-safety-and-evaluation/</guid> </item> </channel> </rss>