Blog

This AI Agent Can Trade Forex Using Tweets and Real-Time Market Data—Here’s How You Can Build One

This AI Agent Can Trade Forex Using Tweets and Real-Time Market Data—Here’s How You Can Build One

Series Introduction

In this mini-series of tutorial, we will utilze Anthropic’s Model Context Protocol (MCP) as the foundation to build an AI agent that can trade foreign currencies based on real-time market intelligence. It will be divided into 3 installments:

What Is a Diffusion LLM and Why Does It Matter?

What Is a Diffusion LLM and Why Does It Matter?

Introduction

Today, Inception Labs released the first commercially available Diffusion Large Language Model (dLLM) - Mercury Coder, and caused a big stir both in the research community as well as in the AI industry. In contrast to auto-regression LLMs (all the LLMs you know today), diffusion LLM works like your favorite AI image generators such as Stable Diffusion, where the final results emerge from a cloud of gibberish text. See one example below for the visualization of asking Mercury Coder to write a Python program to split an image into halves:

Run DeepSeek R1 Locally to Learn How It 'Thinks'—Here's How

Run DeepSeek R1 Locally to Learn How It 'Thinks'—Here's How

It is highly rewarding to see how AI “thinks” aloud step by step, trying alternatives, and self-validate and iterate, by running DeepSeek R1 locally on your computer instead of using their web/phone app. Here are a few examples that I find intriguing, during my two days of testing. It somehow reminds me of the writing style of Stephen Wolfram in many of his physics education series.

How to Build a $300 AI Computer for the GPU-Poor

How to Build a $300 AI Computer for the GPU-Poor

Intro

Running open-source AI models locally on our own computers gives us privacy, endless possibilities of tinkering, and freedom from large corporations. It is almost a matter of free speech.

For us GPU-poor, however, having our own AI computer seems to be a pricey dream. Macbook M3 Max? $3200, ouch! Nvidia 4090? $1850; that hurts even if you can get one. Microsoft Surface Laptop 6? Starting at $1200, still too much.

The Cheapskate’s Guide to Fine-Tuning LLaMA-2 and Running It on Your Laptop

The Cheapskate’s Guide to Fine-Tuning LLaMA-2 and Running It on Your Laptop

Everyone is GPU-poor these days, and some of us are poorer than others. So my mission is to fine-tune a LLaMA-2 model with only one GPU on Google Colab and run the trained model on my laptop using llama.cpp.

A Practical 5-Step Guide to Do Semantic Search on Your Private Data With the Help of LLMs

A Practical 5-Step Guide to Do Semantic Search on Your Private Data With the Help of LLMs

If you have a lot of private enterprise data, how can you use a ChatGPT-like AI system to help you search for relevant information faster? Or if you have lots of personal information, how can you find old memories without the exact keywords?

In this practical guide, I will show you 5 simple steps to implement semantic search with the help of LangChain, vector databases, and large language models. Best of all, I will use all open-source components that can be run locally on your own machine.

I Conducted Experiments With the Alpaca/LLaMA 7B Language Model: Here Are the Results

I Conducted Experiments With the Alpaca/LLaMA 7B Language Model: Here Are the Results

Background

On February 24, 2023, Meta Research released LLaMA: a foundational, 65-billion-parameter large language model. Actually, there were three models: LLaMA 65B and LLaMA 33B were trained on 1.4 trillion tokens, while the smallest LLaMA 7B model was trained on one trillion tokens.

Then on March 13, 2023, a group of Stanford researchers released Alpaca 7B, a model fine-tuned from the LLaMA 7B model.