awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
Tencent avatar

Tencent/PocketFlow

0
View on GitHub↗
2,914 stars·493 forks·Python·other·22 viewspocketflow.github.io↗

PocketFlow

PocketFlow is an integrated toolkit for deep learning model compression, distributed training, and mobile format optimization. It provides a system for reducing the size and complexity of neural networks to improve inference efficiency, featuring a dedicated engine for knowledge distillation and a mobile model optimizer.

The framework differentiates itself through an automated hyperparameter tuning system that uses reinforcement learning and statistical models to determine optimal compression ratios and layer-wise bit allocation. It also includes a distributed training system that utilizes multi-GPU acceleration to speed up the fine-tuning and compression of large networks.

The toolkit covers several core compression methodologies, including weight sparsification, convolutional channel pruning, and both uniform and non-uniform quantization. It provides workflows for recovering precision via knowledge distillation and includes utilities for exporting optimized checkpoints into formats compatible with mobile interpreters.

The project supports the import of pre-trained weights to initialize the compression process and allows for the integration of custom data pipelines and loss functions.

Features

  • Model Compression - Provides a comprehensive system for reducing neural network size and complexity through pruning, sparsification, and quantization.
  • Distributed Training Accelerators - Splits training workloads across multiple GPUs to accelerate the fine-tuning and compression of large networks.
  • Distributed Training - Features a multi-GPU acceleration layer for scaling the fine-tuning and compression of large neural networks.
  • Knowledge Distillation - Uses knowledge distillation to train student models that mimic teacher models for accuracy recovery after compression.
  • Model Compression Suites - Provides an integrated suite for reducing model size through pruning, quantization, and distillation.
  • Weight Quantization - Lowers the precision of model weights and activations to reduce memory footprint and accelerate execution.
  • Weight Pruning - Provides weight sparsification through a dynamic pruning schedule during training to reduce model size.
  • Mobile Model Deployment - Optimizes and converts trained model checkpoints into lightweight formats for efficient on-device inference.
  • Model Format Optimizers - Implements a pipeline to transform large checkpoints into optimized formats for mobile device deployment.
  • Layer-Wise Optimization Strategies - Determines optimal pruning ratios or quantization widths for individual layers to maintain accuracy within resource budgets.
  • Teacher-Student Distillation - Employs teacher-student distillation to train compact models that mimic the performance of larger teacher models.
  • Convolutional Channel Pruning - Reduces input channels in convolutional layers to decrease model size while minimizing reconstruction loss.
  • Pruning Ratio Optimization - Uses reinforcement learning to find optimal compression ratios that meet specific computation or FLOPs budgets.
  • Model Sparsification - Implements a dynamic pruning schedule to reduce the number of non-zero weights and decrease inference cost.
  • Non-Uniform Quantization - Optimizes the distribution of quantization points through back-propagation to approximate full-precision network behavior.
  • Automated Bit Allocation - Employs reinforcement learning to automatically determine the most efficient bit distribution across model layers.
  • Layer-Wise Bit Allocation - Assigns different quantization bit-widths to individual network layers to balance inference speed and model accuracy.
  • Quantization-Aware Training - Fine-tunes models during the quantization process to recover accuracy lost during weight and activation compression.
  • Hyperparameter Optimizers - Automatically searches for optimal compression ratios and bit-widths using reinforcement learning and statistical models.
  • Non-Uniform Quantization - Implements back-propagation-based non-uniform quantization to approximate full-precision network behavior.
  • Automated Hyperparameter Search - Uses a reinforcement learning agent to automatically determine optimal pruning ratios and bit-widths across model layers.
  • RL-Based Parameter Tuning - Iteratively searches for the best configuration settings using reinforcement learning to maximize model performance.
  • TFLite Exports - Transforms trained model checkpoints into the TFLite format for deployment on mobile devices.
  • Mobile Model Format Converters - Transforms optimized checkpoints into a single file format compatible with mobile interpreters for deployment.
  • Filter Pruning - AutoML for model compression and mobile acceleration.
  • Inference Optimization - AutoML-based tool for model compression.
  • Model Optimization and Acceleration - Automated model compression framework for mobile and embedded devices.
  • Model Optimization and Search - Model compression and acceleration framework for mobile devices.

Star history

Star history chart for tencent/pocketflowStar history chart for tencent/pocketflow

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with PocketFlow

These projects share indexed features with PocketFlow. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • pytorch/torchtunepytorch avatar

    pytorch/torchtune

    5,774View on GitHub↗

    Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a configurable training pipeline orchestrated through YAML recipes, with CLI overrides and component swapping, distributed training via FSDP2, memory optimizations, and parameter-efficient fine-tuning methods like LoRA, DoRA, and QLoRA. The library distinguishes itself through its YAML-driven configuration system that defines all training parameters and instantiates components from config files, with full CLI override capability for any field or component at launch time. It suppo

    Python
    View on GitHub↗5,774
  • tencent/tnnTencent avatar

    Tencent/TNN

    4,641View on GitHub↗

    TNN is a deep learning inference framework designed to execute pre-trained neural networks across mobile, desktop, and server hardware. It functions as a hardware-accelerated runtime and model compression toolkit, providing a unified interface for deploying models in diverse environments. The framework includes an ONNX model converter to transform models from various training frameworks into a standardized internal format. It distinguishes itself through a combination of model compression tools—including weight quantization and static-code pruning—and a memory management system that reuses bu

    C++
    View on GitHub↗4,641
  • modelscope/swiftmodelscope avatar

    modelscope/swift

    14,633View on GitHub↗

    Swift is a toolkit for the full-parameter and parameter-efficient fine-tuning of large language and multimodal models. It functions as a multimodal model trainer for text, image, video, and audio data, and includes specialized tools for model compression and reinforcement learning from human feedback. The framework provides an alignment toolkit for optimizing model behavior using preference learning algorithms and reinforcement learning. It integrates parameter-efficient fine-tuning methods to adapt models with minimal memory and compute requirements, alongside utilities for reducing hardware

    Python
    View on GitHub↗14,633
  • paddlepaddle/paddlenlpPaddlePaddle avatar

    PaddlePaddle/PaddleNLP

    12,953View on GitHub↗

    PaddleNLP is a development library and toolkit for training, fine-tuning, and deploying large and small language models using the PaddlePaddle framework. It provides a comprehensive suite for the entire natural language processing lifecycle, from model development to high-performance inference. The project features a standardized model zoo for loading and managing pre-trained models and tokenizers through a unified interface. It distinguishes itself with a specialized model compression framework that reduces memory footprints via weight precision conversion and lossless size optimization, alo

    Python
    View on GitHub↗12,953
Compare all 30 related projects→

Frequently asked questions

What does tencent/pocketflow do?

PocketFlow is an integrated toolkit for deep learning model compression, distributed training, and mobile format optimization. It provides a system for reducing the size and complexity of neural networks to improve inference efficiency, featuring a dedicated engine for knowledge distillation and a mobile model optimizer.

What are the main features of tencent/pocketflow?

The main features of tencent/pocketflow are: Model Compression, Distributed Training Accelerators, Distributed Training, Knowledge Distillation, Model Compression Suites, Weight Quantization, Weight Pruning, Mobile Model Deployment.

Which projects share features with tencent/pocketflow?

Projects with overlapping indexed features include: pytorch/torchtune — Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a… tencent/tnn — TNN is a deep learning inference framework designed to execute pre-trained neural networks across mobile, desktop, and… modelscope/swift — Swift is a toolkit for the full-parameter and parameter-efficient fine-tuning of large language and multimodal models.… paddlepaddle/paddlenlp — PaddleNLP is a development library and toolkit for training, fine-tuning, and deploying large and small language… paddlepaddle/paddleclas — PaddleClas is a toolkit for image classification and recognition built on PaddlePaddle. It provides a suite of tools… vllm-project/llm-compressor — llm-compressor is a quantization toolkit and post-training library designed to reduce the memory footprint and size of…