Sohaib Arif — AI Safety Research

Notes on AI safety for local & embedded models

Fine Tuning Code-Gen model on AMD GPU

Most fine-tuning tutorials assume an Nvidia GPU or a cloud service. This post fills two gaps left by the Hugging Face Smol course and the book Domain-Specific Small Language Models: running the fine-tuning on a consumer AMD GPU with ROCm, and automatically evaluating generated Manim code by restoring its layout and checking it with Python's ast module. It also gives a short history of why CUDA became the default for deep learning.

large-language-modellocal llm

Realsense d435i on kria kr260

Compiling librealsense on the KR260, using it from Python with and without uv, streaming depth to a desktop, and first steps toward obstacle avoidance.

fpgakria kr 260robotics

Adding FPGA PWM speed control to an AMD Kria KR260 robot with IBT-2 motor drivers

Replacing a PMOD GPIO block with a custom 8-channel PWM core on the AMD Kria KR260, then using it to drive a Parallax servo, two IBT-2 motor drivers and a gamepad-controlled metal 4WD robot.

fpgakria kr 260robotics

Driving an AMD Kria KR260 Robot over WiFi in a cardboard chassis

Update on the AMD Kria KR260 robot project and instructions on how to find the pins and create client/server program to control the bot

fpgakria kr 260

Hidden Pitfalls In Learning Robotics: Choosing Your Motors And Power Supply

Describes how to select batteries, motors and other components for robotics and shows examples using AMD Kria KR260 based robot.

fpgakria kr 260robotics

Getting started with AMD Kria KR 260 hardware

Tutorial on how to enable use of hardware pins on AMD Kria KR 260

fpgakria kr 260

Result Visualization for local llm tool use

Different visualizations to indicate weather local LLMs follow instructions or not and what the failure modes are when they don't.

large-language-modellocal llm

Updates to the LLM tool use project

Describes updates to the tool use project updates

large-language-modellocal llm

Interactive graph showing temperature, top_k and top_p

Interactive graph showing temperature, top_k and top_p

interactive

Experimental Setup and results for tool use verification project

Describes the experimental setup for Local LLM tool Use verification

large-language-modellocal llm