← Open Source
felafax

felafax

Felafax is building AI infra for non-NVIDIA GPUs.

InfrastructureOrchestrationJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
569
Stars
40
Forks
+0
This week
3
Contributors
Created 2024-06-17 · Updated 2026-09-26 · #16851 today
Top developers

felafax/felafax is ranked 16,851 with 569 stars.

Same-category comparison

felafax/felafax is ranked 16,851 among these 8 peers; google/CFU-Playground is ranked 16,853.

Same-category comparison
NameRankMetrics
Sidiora-Labs/Paxeer-X-Network16,808
Language:
Rust
Stars:
571
Forks:
87
Description:
Paxeer X is a Distributed HyperState Machine for payments, code execution and intent routing. Designed for Machines and the Users operating them.
monatis/clip.cpp16,816
Language:
C++
Stars:
571
Forks:
51
Description:
CLIP inference in plain C/C++ with no extra dependencies.
b-nnett/codex-plusplus-ios-simulator16,825
Language:
JavaScript
Stars:
570
Forks:
53
VictoriaMetrics/helm-charts16,847
Language:
Go Template
Stars:
569
Forks:
427
Description:
Helm charts for VictoriaMetrics, VictoriaLogs and ecosystem.
google/CFU-Playground16,853
Language:
Verilog
Stars:
569
Forks:
160
LeoYeAI/openclaw-guardian16,860
Language:
Shell
Stars:
568
Forks:
104
raids-lab/crater16,874
Language:
Go
Stars:
568
Forks:
76
Description:
Crater is a cloud-native AI training & inference platform.
diggerhq/opencomputer16,902
Language:
TypeScript
Stars:
566
Forks:
66
Description:
The easiest way to build and deploy an agent.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryInfrastructure
SubcategoryOrchestration
Stars569
Forks40
Contributors3
Created date2024-06-17
Updated date2026-09-26
Stars in 1 day0
Stars in 7 days0
Rank16,851
Previous rank16,642
Rank change-209
7-day stars rank15,763
Previous 7-day stars rank15,770
7-day stars rank change7
Total stars rank17,516
Previous total stars rank17,480
Total stars rank change-36
README summary

1 on Google Cloud TPUs for 30% lower cost and scale seamlessly! Felafax is a framework for continued-training and fine-tuning open source LLMs using **XLA runtime**. We take care of necessary runtime setup and provide a Jupyter notebook out-of-box to just get started. Easy to configure all aspects of training (designed for ML researchers and hackers). Easy to scale training from a single TPU VM with 8 cores to entire TPU Pod containing 6000 TPU cores

(**1000X**)! Our goal at felafax is to build infra to make it easier to run AI workloads on non-NVIDIA hardware (TPU, AWS Trainium, AMD GPUs, and Intel GPUs). ✨ Finetune for Free Add your dataset, click "Run All", and you'll run on free TPU resource on Google Colab! 1 (1B, 3B)** | ▶️ Start for free on Google Colab TPU | Currently supported models **LLaMa-3. 1 JAX Implementation** $${\color{red}New! }$$ Converted from PyTorch to JAX for improved performance Full-precision and

LoRA training support for **1B, 3B, 8B, 70B, 405B**. Run efficiently across diverse hardware (TPUs, AWS Trainium, NVIDIA, AMD) through JAX's hardware-optimized XLA backend Scale seamlessly to handle larger context lengths and datasets by sharding across multiple accelerators **LLaMa-3/3. 1 PyTorch XLA** LoRA and full-precision training support codepointer Running fine-tuning via Felafax CLI $${\color{red}New! }$$ Get started with fine-tuning your models using the Felafax CLI in a few simple steps. Install the CLI

and authenticate Start off by installing the CLI. Then, generate an Auth Token: Visit preview. Navigate to Tokens page and create a new token. Finally, authenticate your CLI session using your token: Step 2. Set up the fine-tuning config First, generate a default configuration file for fine-tuning. This command generates a file in the current directory with default hyperparameter values. Second, update the config file with your hyperparameters: **HuggingFace knobs:** Provide your HuggingFace token and repository ID to

upload the fine-tuned model. **Dataset pipeline and training params:** Adjust , to use for fine-tuning dataset. Set num_steps to if you want trainig to run through entire dataset. If num_steps is set to a number, training will stop after the specified number of steps. is the number of steps between evaluations. Start the fine-tuning run Run the follow command to see the list of base models you can fine-tune, we support all variants of LLaMA

-3. Now, you can start the fine-tuning process with your selected model from above list and dataset name from HuggingFace (like ): Example command to get you started: After you start the fine-tuning job, **Felafax CLI takes care of spinning up the TPUs, running the training, and it uploads the fine-tuned model to the HuggingFace Hub. ** Other handy commands Monitor the fine-tuning job You can stream realtime logs to monitor the progress of your fine-tuning job

: List your fine-tuned models After fine-tuning is complete, you can list all your fine-tuned models: Chat with

Frequently asked questions

How many stars and forks are recorded?

felafax/felafax has 569 stars and 40 forks.

What is the repository rank?

felafax/felafax is ranked 16,851.

What language and category are recorded?

felafax/felafax has 569 stars, uses Jupyter Notebook and belongs to Infrastructure.

Which repository is closest in rank?

felafax/felafax is compared with google/CFU-Playground, ranked 16,853 with 569 stars.

README

Felafax -- tune LLaMa3.1 on Google Cloud TPUs for 30% lower cost and scale seamlessly!

     ![GitHub Repo stars](https://img.shields.io/github/stars/felafax/felafax?logo=github) 
     ![GitHub License](https://img.shields.io/github/license/felafax/felafax) 

Felafax is a framework for continued-training and fine-tuning open source LLMs using XLA runtime. We take care of necessary runtime setup and provide a Jupyter notebook out-of-box to just get started.

  • Easy to use.
  • Easy to configure all aspects of training (designed for ML researchers and hackers).
  • Easy to scale training from a single TPU VM with 8 cores to entire TPU Pod containing 6000 TPU cores (1000X)!

Our goal at felafax is to build infra to make it easier to run AI workloads on non-NVIDIA hardware (TPU, AWS Trainium, AMD GPUs, and Intel GPUs).

✨ Finetune for Free

Add your dataset, click "Run All", and you'll run on free TPU resource on Google Colab!

Felafax supports Free Notebooks
Llama 3.1 (1B, 3B) ▶️ Start for free on Google Colab TPU

Currently supported models

  • LLaMa-3.1 JAX Implementation $${\color{red}New!}$$

    • Converted from PyTorch to JAX for improved performance
    • Full-precision and LoRA training support for 1B, 3B, 8B, 70B, 405B.
    • Run efficiently across diverse hardware (TPUs, AWS Trainium, NVIDIA, AMD) through JAX's hardware-optimized XLA backend
    • Scale seamlessly to handle larger context lengths and datasets by sharding across multiple accelerators
  • LLaMa-3/3.1 PyTorch XLA

Running fine-tuning via Felafax CLI $${\color{red}New!}$$

Get started with fine-tuning your models using the Felafax CLI in a few simple steps.

Step 1. Install the CLI and authenticate

Start off by installing the CLI.

pip install pipx
pipx install felafax-cli

Then, generate an Auth Token:

Finally, authenticate your CLI session using your token:

felafax-cli auth login --token 

Step 2. Set up the fine-tuning config

First, generate a default configuration file for fine-tuning. This command generates a config.yml file in the current directory with default hyperparameter values.

felafax-cli tune init-config

Second, update the config file with your hyperparameters:

  • HuggingFace knobs:

    • Provide your HuggingFace token and repository ID to upload the fine-tuned model.
  • Dataset pipeline and training params:

    • Adjust batch_size, max_seq_length to use for fine-tuning dataset.
    • Set num_steps to null if you want trainig to run through entire dataset. If num_steps is set to a number, training will stop after the specified number of steps.
    • Set learning_rate and lora_rank to use for fine-tuning.
    • eval_interval is the number of steps between evaluations.

Step 3. Start the fine-tuning run

Run the follow command to see the list of base models you can fine-tune, we support all variants of LLaMA-3.1 as of now.

felafax-cli tune start --help

Now, you can start the fine-tuning process with your selected model from above list and dataset name from HuggingFace (like yahma/alpaca-cleaned):

felafax-cli tune start --model  --config ./config.yml --hf-dataset-id 

Example command to get you started:

felafax-cli tune start --model llama3-2-1b --config ./config.yml --hf-dataset-id yahma/alpaca-cleaned

After you start the fine-tuning job, Felafax CLI takes care of spinning up the TPUs, running the training, and it uploads the fine-tuned model to the HuggingFace Hub.

Other handy commands

Monitor the fine-tuning job

You can stream realtime logs to monitor the progress of your fine-tuning job:

# Use `` with the job namethat you get after starting the fine-tuning.
felafax-cli tune logs --job-id  -f
List your fine-tuned models

After fine-tuning is complete, you can list all your fine-tuned models:

felafax-cli model list
Chat with your fine-tuned model (runs on TPU again!):

You can start an interactive terminal session to chat with your fine-tuned model:

# Replace `` with model id from `model list` command you ran above.
felafax-cli model chat --model-id 
Use help to explore more commands!

The CLI is broken into three main command groups:

  • tune: To start/stop fine-tuning jobs.
  • model: To manage and interact with your fine-tuned models.
  • files: To upload/view yourdataset files.

Use the --help flag to discover more about any command group:

felafax-cli tune --help

AMD 405B fine-tuning run

We recently fine-tuned the llama3.1 405B model on 8xAMD MI300x GPUs using JAX instead of PyTorch. JAX's advanced sharding APIs allowed us to achieve great performance. Check out our blog post to learn about the setup and the sharding tricks we used.

We did LoRA fine-tuning with all model weights and lora parameters in bfloat16 precision, and with LoRA rank of 8 and LoRA alpha of 16:

  • Model Size: The LLaMA model weights occupy around 800GB of VRAM.
  • LoRA Weights + Optimizer State: Approximately 400GB of VRAM.
  • Total VRAM Usage: 77% of the total VRAM, around 1200GB.
  • Constraints: Due to the large size of the 405B model, there was limited space for batch size and sequence length. The batch size used was 16 and the sequence length was 64.
  • Training Speed: ~35 tokens/second
  • Memory Efficiency: Consistently around 70%
  • Scaling: With JAX, scaling was near-linear across 8 GPUs.

The GPU utilization and VRAM utilization graphs can be found below. However, we still need to calculate the Model FLOPs Utilization (MFU). Note: We couldn't run the JIT-compiled version of the 405B model due to infrastructure and VRAM constraints (we need to investigate this further). The entire training run was executed in JAX eager mode, so there is significant potential for performance improvements.

  • GPU utilization:
  • VRAM utilization:
  • rocm-smi data can be found here.

Credits:

Contact

If you have any questions, please contact us at founders@felafax.ai.

Nearby in the ranking
Similar items