SplitFM  by FDU-INC

Framework for efficient, private foundation model fine-tuning and inference

Created 1 year ago
304 stars

Top 88.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

SplitFM is an open-source framework for parameter-efficient fine-tuning (SplitLoRA) and inference (SplitInfer) of foundation models. It addresses edge deployment challenges by enabling resource-constrained, data-sensitive environments through techniques like Federated Learning, Split Learning, and cloud offloading, thereby enhancing privacy and efficiency.

How It Works

SplitLoRA combines Federated Learning (FL) for data privacy with Split Learning (SL) for computational offloading, based on the LoRA technique. This allows fine-tuning by training minimal parameters, reducing load and enhancing privacy. SplitInfer enables large foundation model inference on edge devices by leveraging cloud resources. It partitions models, performing inference without transmitting sensitive data to external servers, thus preserving privacy and enabling deployment on low-resource devices.

Quick Start & Requirements

  • Installation: pip install loralib. Dependencies via pip install -r requirement.txt. Docker image nvcr.io/nvidia/pytorch:20.03-py3 available.
  • Prerequisites:
    • SplitLoRA: Ubuntu 18.04, Python 3.7.16, PyTorch 1.7.1+cu110, Transformers 3.3.1. Supports nn.Linear, nn.Embedding, nn.Conv2d. Requires original pre-trained checkpoints.
    • SplitInfer: Ubuntu 18.04, Python 3.8.20, PyTorch 2.
Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
170 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems").

MobiLlama by mbzuai-oryx

0%
669
Small language model for edge devices
Created 1 year ago
Updated 8 months ago
Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Andrew Trask Andrew Trask(Research Scientist at Google DeepMind), and
1 more.

tf-encrypted by tf-encrypted

0.1%
1k
Framework for encrypted machine learning in TensorFlow
Created 7 years ago
Updated 1 year ago
Starred by Omar Sanseviero Omar Sanseviero(DevRel at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
11 more.

petals by bigscience-workshop

0.1%
10k
Run LLMs at home, BitTorrent-style
Created 3 years ago
Updated 1 year ago
Feedback? Help us improve.