on-internet

숫자를 더 적은 비트로, 어댑터는 본체에 합쳐서 — 양자화와 LoRA 병합 (비전공자의 대회 도전기 #10)

양자화: 숫자를 더 적은 칸에 적기 모델의 가중치는 숫자 수십억 개입니다. 숫자 하나를 몇 비트로 저장하느냐가 모델의 크기를 정합니다. 이것을 줄이는 것이 양자화(quantization) 입니다. 자를 mm 단위까지 재던 것을 cm 단위로 대충 재는 것과 비슷합니다. 크기는 줄어들지만 정밀도가 조금 떨어집니다. 매개변수가 40억 개인 모델을 예로 들면 다음과 같습니다. 저장 방식 숫자 하나 모델 크기(대략) fp32 4바이트 16GB fp16 / bf16 2바이트 8GB 8bit 1바이트 4GB 4bit 0.5바이트 2GB params = 4_000_000_000 for name, b in [("fp32", 4), ("fp16", 2), ("8bit", 1), ("4bit", 0.5)]: print(name, params * b / 1e9, "GB") 실제로는 여기에 작업 공간이 더해집니다. fp16과 bf16: 같은 16비트, 다른 성격 둘 다 숫자 하나를 16비트로 저장하지만 비트를 다르게 나눕니다. fp16: 정밀도(소수점 아래를 얼마나 세밀하게)를 더 줍니다. 대신 표현할 수 있는 숫자의 범위가 좁아서, 너무 큰 값이 나오면 무한대나 NaN(숫자 아님

메모리는 가중치만이 아니다 — 활성화 메모리와 배치 크기 (비전공자의 대회 도전기 #9)

앞선 글에서 GPU 메모리를 책상에 비유했습니다. 이번에는 책상 위의 물건을 둘로 나눠 보겠습니다. 가중치 메모리와 활성화 메모리 가중치: 모델이 가진 숫자들(매개변수). 모델을 불러오면 크기가 정해져 있고, 입력이 바뀌어도 변하지 않습니다. 책상 위에 올려 둔 참고서입니다. 활성화: 입력이 모델을 지나가면서 만들어지는 중간 계산 결과. 층(layer)을 하나 지날 때마다 만들어지고, 입력에 따라 크기가 달라집니다. 풀이 과정을 적는 연습장입니다. 참고서는 한 번 올려 두면 끝이지만, 연습장은 문제가 길어질수록, 한꺼번에 푸는 문제가 많을수록 넓어집니다. 활성화는 얼마나 클까: 대략 계산해 보기 중간 결과 하나의 크기는 대략 이렇습니다. 토큰 수 × 층의 너비 × 숫자 하나의 바이트 수 설명용 숫자를 넣어 보겠습니다(실제 모델의 값이 아닙니다). 토큰 10,000개, 층의 너비 4,096, fp16(숫자 하나가 2바이트)이면 다음과 같습니다. tokens, width, bytes_per = 10_000, 4_096, 2 size = tokens * width * bytes_per print(size / 1e6, "MB") # 약 82 MB 한 덩어리가 82M

Model a dental PPO deductible and annual maximum in TypeScript

The fixture records the crown's $1,200 submitted office charge as billedCents. The in-network allowed amount is $1,000. After a $50 deductible, the plan's 50% share would be $475. The annual maximum has $400 left, so the plan pays $400 and the patient owes $600. Carry the balances across visits Start with $50 of deductible remaining and $500 of remaining annual plan benefits. Under the sample PPO terms, a cleaning is deductible-exempt and its $100 plan payment counts toward the maximum. The full $50 deductible is still available when the crown is processed. The crown uses the remaining $400 of

A Walking Paradox With a Pen and a Prayer

A walking paradox learning to turn deep feelings into quiet grace. Start with my pinned story below to get to know the soul behind the… Continue reading on Medium »

How to Handle Criticism Without Getting Defensive

Learn six practical ways to respond to negative feedback, accept constructive criticism, and maintain your confidence. Continue reading on Medium »

Como bifurcar uma conversa de agente de IA no Sharkly

Comece grátis na web Para bifurcar uma conversa de agente de IA no Sharkly, passe o mouse sobre qualquer mensagem em um chat de Agente e clique em Bifurcar em um novo chat. O Sharkly abre uma nova sessão a partir desse ponto e deixa a original intacta. Bifurque a partir da sua própria mensagem para editá-la e reenviá-la; bifurque a partir de uma resposta para continuar depois dela. A bifurcação pode rodar em um Runtime diferente. Um agente segue pelo caminho errado, e as soluções usuais são ruins. Uma mensagem de acompanhamento arrasta a resposta errada junto como contexto. Um novo chat obriga

Score B2B Leads and Draft EN/KO Follow-ups Inside Claude Desktop with a 116-Line MCP Server

Disclosure: I wrote and maintain the open-source project used here (MIT). I also offer paid setup work, linked at the end. Everything below works without paying anyone. Most "AI lead scoring" demos paste a lead into a chat and ask "is this a good lead?". Ask again tomorrow and you get a different answer. That is fine for brainstorming and terrible for a sales queue. The fix is to split the job: Your code owns the rule: the same lead always gets the same score, with reasons you can audit. The model owns the language: deciding which tool to call, summarizing, and drafting the follow-up. The Mode

devnet-fixtures: funded wallets, mints and token balances from a YAML file

An end-to-end test for a Solana app needs a starting state before it can check anything. There must be a wallet with some SOL to pay fees, a second wallet to receive, a mint with known decimals, token accounts, and balances the test can assert on. Most projects build that state with a setup script: a few airdrops, a mint creation, some mintTo calls, then a list of addresses copied into environment variables. Those scripts tend to break in the same places. Devnet airdrops are rate limited and fail at random. Running the script twice creates a second mint or doubles the balances. And the address

How to run your test suite in a clean microVM with sandscale sandbox run

Sometimes you want to know whether your tests pass on a clean machine, not on the laptop that has accumulated three years of global packages. Or you are about to run a test suite an agent changed and would rather it did not run next to your SSH keys. The Sandscale CLI has one command for this: sandscale sandbox run. It sends a folder to a fresh sandbox, runs a command there, streams the output and exits with the command's exit code. Everything below is from the sandscale sandbox reference, which is generated from the CLI itself. Install and sign in The CLI page lists the install options for ma

War of the Worlds: C++ Namespaces vs Doxygen @addtogroup

Five days after we taught our parser to read kind="group" files from Doxygen's XML output (to save the "missing" free functions), our systematic parity check of the AST parser on a real corpus revealed wild architectural anomalies. Doxygen is famous for mixing the visual structure of documentation (how humans want to read it) with the real semantics of C++ code (how the code works). The @addtogroup tag is a prime example of this. And our parser fell victim to this mixing on two independent fronts at once. Trigger 1: Phantom Namespaces We took the first hit from global functions without namespa

n2n supernode's REGISTER_SUPER_NAK path trusted a 16-bit length

n2n supernode's REGISTER_SUPER_NAK path trusted a 16-bit length The n2n peer-to-peer VPN uses supernodes to help edges find each other and exchange control messages. One of those messages is REGISTER_SUPER_NAK. CVE-2026-136404 concerns the way n2n versions 3.0 through 3.1.1 handled an authentication-token size inside that message. The field came from the network and was used in a stack buffer operation without adequate validation. The CVE record describes a remote, unauthenticated attacker who can register an edge in a chosen community and send a REGISTER_SUPER_NAK datagram with an oversized t

A website chat that only answers from what you approve

Most website chatbots fail in a boring way. They answer confidently, and they answer wrong. If a visitor asks "Do you serve Whitefield on weekends?" and the bot makes something up, you have created a problem. So when we built** BPAI**, we started with one rule: the AI answers only from information the business owner has approved. Approved information only You add what you want customers to know: service areas, timings, pricing, policies. Visitors ask in their own words, and the AI replies from that material. It doesn't improvise. A person can step in Some questions need a human, like a booking

Is That AI Automation Actually Worth It? A 5-Number ROI Formula (Free Calculator)

Disclosure: the calculator page links to Make with a labeled affiliate link. The math below works with any platform, and the calculator is free, open source and runs in your browser. Every week someone asks me: "Should we automate X with AI?" The honest answer is usually "it depends on five numbers." Here they are, with the formula, so you can answer it yourself in 30 seconds. The five numbers Tasks per month: how many times the task happens (invoices entered, leads routed, tickets tagged). Minutes per task: how long a person takes today. Loaded staff cost per hour: wage plus payroll tax, bene

Updating a public counter every 5 minutes on a free plan

ARLTS has a public "impact board" at arlts.org/impact: how many people have visited, and how many were active today, this week, and this month. The numbers come from our analytics tool (PostHog). The board used to update once an hour. Now the user counts update every 5 minutes, and it costs nothing extra. How it worked A timer in the database (pg_cron) calls a little cloud function once an hour. The function asks PostHog about 10 questions (visitors, page views, videos played, and more) and writes the answers to a table. The page reads from that table, never from PostHog. Why not run the whole

ruflo's default MCP bridge exposed terminal execution to the network

ruflo's default MCP bridge exposed terminal execution to the network ruflo is an agent meta-harness with a Model Context Protocol bridge. The default Docker Compose deployment shipped with POST /mcp and POST /mcp/:group exposed without authentication. The bridge also bound to all network interfaces, and the tool path included terminal_execute. CVE-2026-59726 describes the resulting unauthenticated remote code execution in versions before 3.16.3. The issue is not that an MCP server can run tools. That is the product's purpose. The failure was the combination of a network-reachable endpoint, no

How to Manage API Changes Without Breaking Frontend Applications

Most frontend outages caused by APIs are not dramatic. Nobody deletes the database. Someone renames user_name to username, ships it on a Friday, and every customer on an older mobile build sees a blank profile screen. The backend tests passed. The frontend tests passed. The problem lived in the gap between them: the contract. We learned most of what follows the hard way, while building an HRMS and a CRM with React and TypeScript. Both apps have dozens of screens reading the same employee and customer records. One careless change to a shared endpoint can break pages nobody thought to retest. Th

Build a weekly football-prediction bot in plain Python and have it scored out of sample

Disclosure up front: Podium Bots is our project. It's a free league (18+, no betting, no prizes, no promise you'll be right). The problem Backtesting a 1X2 model is easy to flatter. If you pick the season after the fact, or you "submit" after some results are known, the number is not a forecast. What we run Each open round, a bot can read the fixture list and send up to 10 columns before the first kickoff. We seal the batch with SHA-256 and, when the scores are in, we publish hits and a ranking. The full history stays up. A reference bot (home-team baseline, with a couple of exceptions) is alw

Older stories