Skip to content

joennlae/riscv-llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RISC-V LLM (using QEMU for now)

This repository is used for some preliminary testing of the RISCV-LLM project. It is based on the RISC-V Getting Started Guide and the RISCV-Bringup repository.

CI

LLM Inference Test RISC-V Vector Intrinsics Test RISC-V Ubuntu 22.04 Booting

Features

  • RISC-V QMEU setup running Ubuntu22.04 with RISC-V Vector Extension (RVV) v1.0 (v0.7.1 is not supported in QEMU)
  • GCC 13.2 with RVV 1.0 support including RVV intrinsics v0.11
  • CI Pipeline for building and testing the RISC-V LLM project

Llama 2 7B Example

One example taken from the CI:

What do you think about RISC-V?

RISC-V (RISC Virtual Machine) is an open-source instruction set architecture (ISA) that was designed to be simple, efficient, and extensible. It was first introduced in 2010 by the University of California, Berkeley and is now maintained by the RISC-V Foundation, a non-profit organization.

Setup

Install QEMU from scratch

Run

git submodule update --init --recursive
./scripts/install_qemu.sh
source env.sh

# download the vm
wget https://iis.ee.ethz.ch/~janniss/scratch_schneematt/ubuntu-riscv-vector-new.tar.gz
tar -xvf ubuntu-riscv-vector-new.tar.gz \
    && mv ubuntu-22.04-gcc-13-backup/ ubuntu-riscv-vector/ \
    && rm ubuntu-riscv-vector-new.tar.gz
cd ubuntu-riscv-vector

# boot the VM
./start_riscv.sh

Docker setup

There is a prepared docker image. Which includes the RISC-V VM.

docker pull ghcr.io/joennlae/qemu-riscv-vec
docker run -it --rm ghcr.io/joennlae/qemu-riscv-vec

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages