Code Monkey home page Code Monkey logo

Comments (12)

jiaxiang-wu avatar jiaxiang-wu commented on June 21, 2024

You mean how to train a compressed model with multiple nodes/machines?

from pocketflow.

xieydd avatar xieydd commented on June 21, 2024

When using the horovod, i think it`s feasible.

from pocketflow.

as754770178 avatar as754770178 commented on June 21, 2024

Yes, but I mean compress the model by Prunning/Quantization, then train the compress model with multiple nodes/machines.

I have other questions:

  1. Can PocketFlow compress object detection network, such as Yolo, fasterCNN?
  2. I how to verify the inference speed of compressed model is faster than the full-precision uncompressed network?

thanks

from pocketflow.

as754770178 avatar as754770178 commented on June 21, 2024

When using the horovod, i think it`s feasible.

What's it?

from pocketflow.

xieydd avatar xieydd commented on June 21, 2024

Horovod is Distributed training framework for TensorFlow, Keras, and PyTorch.

  1. AFAIK,it not yet support the state-of-art models lke the Yolo or fasterCNN
  2. you can test in TensorRT
    @as754770178

from pocketflow.

as754770178 avatar as754770178 commented on June 21, 2024

I exec command ./scripts/run_local.sh nets/resnet_at_cifar10_run.py --learner dis-chn-pruned.

I read the checkpoint file of compressed model (saved in models_dcp_eval file) and pre-trained model, but I find the structure of net is same. Compressed model only delete the variable w.r.t Momentum and BatchNorm.
So I want to test the inference speed of compressed model and full-precision uncompressed network

from pocketflow.

jiaxiang-wu avatar jiaxiang-wu commented on June 21, 2024

@as754770178

  1. PocketFlow does not support object detection models (YOLO / Faster R-CNN) for the moment. We are working on this right now.
  2. For multi-node training, please use horovod, as suggested by @xieydd .
  3. To verify the inference speed, use TF-Lite models generated by tools/conversion/export_pb_tflite_models.py.

from pocketflow.

as754770178 avatar as754770178 commented on June 21, 2024

I mean use tf-serving to test the speed? Can horovod support compress model? I want compress model and train it together, like PocketFlow.

from pocketflow.

jiaxiang-wu avatar jiaxiang-wu commented on June 21, 2024
  1. Horovod is a distributed training framework. It does not care what code is running within.
  2. The speed improvement on GPU will be less significant than on ARM-based mobile devices, according to our experience.

from pocketflow.

as754770178 avatar as754770178 commented on June 21, 2024

Can PocketFlow compress multi-label Classification network?

from pocketflow.

jiaxiang-wu avatar jiaxiang-wu commented on June 21, 2024

Yes, you can define a new ModelHelper class, including the network architecture and the computation of loss function's value, similar to other ModelHelper classes defined under the nets directory.

from pocketflow.

as754770178 avatar as754770178 commented on June 21, 2024

OK, thanks.

from pocketflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.