SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
© DeNA Co., Ltd.
Chaienr
Channel	Pruning
December 15, 2018
Tomohiro Kato
AI System Dept.
DeNA Co., Ltd.
© DeNA Co., Ltd.
2
© DeNA Co., Ltd.
3
© DeNA Co., Ltd.
n u o PV
n ) d d
n rRpR h D C )
n ( A 18 8 l cg a st
n ) 2 8 e nyiMLNm T I
n (728 D 1 01 D 8
n )8 8 7e A 8 I
n ) 2 8 e nyi ( /
n A 01
4
© DeNA Co., Ltd.
n CV
5
https://www.slideshare.net/ShotaSuzuki2/mlops-shibuyasynapse-4-125602323
https://dena.ai/work6/
© DeNA Co., Ltd.
n Deep Learning …
HW
n Channel Pruning
ChainerMeetup →
6
© DeNA Co., Ltd.
Channel Pruning
n Channel Pruning
Deep Learning
Weight CPU/GPU /
n Optuna Pruning ChainerPruningExtension
7
© DeNA Co., Ltd.
n ChainerCV ResNet50 channel pruning
8
MacBook Pro CPU, Chainer v5.1.0
© DeNA Co., Ltd.
demo
9
© DeNA Co., Ltd.
ChainerPruner
n https://github.com/DeNA/ChainerPruner
n Channel Pruning
n Channel Pruning
n Under development
10
© DeNA Co., Ltd.
ChainerPruner
n Pruning
Channel Pruning
n Pruning
Channel Pruning
11
© DeNA Co., Ltd.
Dynamic	Pruning
n Pruning
Weight
n Pruning
Weight shape
1/0 0
Iteration
n Pruning load
:benri:
12
© DeNA Co., Ltd.
Mask	and	Rebuild
n Weight -step
Mask: Weight
Rebuild: Weight
n Mask
L2 N-%
chainerpruner.Mask
13
© DeNA Co., Ltd.
Rebuild mechanism
n Channel Pruning
n Conv – BN – FC Conv Pruning Bn FC
Bn, FC input channel Conv output channel update
n
n Conv - BN - Pool - ConvDW – FC Link Function
ChainerPruner
n
14
© DeNA Co., Ltd.
Rebuild mechanism
n
15
© DeNA Co., Ltd.
Serializers
n Pruning Weight
n Link Pruning Weight
16
© DeNA Co., Ltd.
Utility
n
https://github.com/belltailjp/chainer_computational_cost
wrapper
n pruning
n / /
17
© DeNA Co., Ltd.
n ChainerPruner
https://github.com/DeNA/ChainerPruner
Channel Pruning
n Future work
ChainerX support
Pruning
Reporter tensorboardX
Chainer
18
© DeNA Co., Ltd.
19
EOF

Contenu connexe

Similaire à Chainer向けChannel Pruningフレームワークの設計と実装

Similaire à Chainer向けChannel Pruningフレームワークの設計と実装 (20)

Effectively Migrating to Cassandra from a Relational Database
Effectively Migrating to Cassandra from a Relational DatabaseEffectively Migrating to Cassandra from a Relational Database
Effectively Migrating to Cassandra from a Relational Database
 
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert HodgesA Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
 
Run Simulations and Then Become An Inventor (Best Paper Award in CDNLive Taiw...
Run Simulations and Then Become An Inventor (Best Paper Award in CDNLive Taiw...Run Simulations and Then Become An Inventor (Best Paper Award in CDNLive Taiw...
Run Simulations and Then Become An Inventor (Best Paper Award in CDNLive Taiw...
 
Improving Python and Spark Performance and Interoperability with Apache Arrow
Improving Python and Spark Performance and Interoperability with Apache ArrowImproving Python and Spark Performance and Interoperability with Apache Arrow
Improving Python and Spark Performance and Interoperability with Apache Arrow
 
Case Study: Large Scale Deployment for Machine Learning with Highspeed Storage
Case Study: Large Scale Deployment for Machine Learning with Highspeed StorageCase Study: Large Scale Deployment for Machine Learning with Highspeed Storage
Case Study: Large Scale Deployment for Machine Learning with Highspeed Storage
 
Improving Python and Spark Performance and Interoperability with Apache Arrow...
Improving Python and Spark Performance and Interoperability with Apache Arrow...Improving Python and Spark Performance and Interoperability with Apache Arrow...
Improving Python and Spark Performance and Interoperability with Apache Arrow...
 
Amora: A mobile remote assistant
Amora: A mobile remote assistantAmora: A mobile remote assistant
Amora: A mobile remote assistant
 
SpringOne Platform 2017報告会 メインプロジェクトのアップデート
SpringOne Platform 2017報告会 メインプロジェクトのアップデートSpringOne Platform 2017報告会 メインプロジェクトのアップデート
SpringOne Platform 2017報告会 メインプロジェクトのアップデート
 
Eastman Chemical Company introduces SEIGA
Eastman Chemical Company introduces SEIGA Eastman Chemical Company introduces SEIGA
Eastman Chemical Company introduces SEIGA
 
Aveva_E3D.pptx
Aveva_E3D.pptxAveva_E3D.pptx
Aveva_E3D.pptx
 
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
 
ETA Padtron Sdn.Bhd. - Enterprise Programming - Tools
ETA Padtron Sdn.Bhd. - Enterprise Programming - ToolsETA Padtron Sdn.Bhd. - Enterprise Programming - Tools
ETA Padtron Sdn.Bhd. - Enterprise Programming - Tools
 
Continuous Delivery and Automated Operations on k8s with keptn
Continuous Delivery and Automated Operations on k8s with keptnContinuous Delivery and Automated Operations on k8s with keptn
Continuous Delivery and Automated Operations on k8s with keptn
 
Nano Dimension Presentation
Nano Dimension PresentationNano Dimension Presentation
Nano Dimension Presentation
 
TechWiseTV Workshop: Extending Intent-Based Networking to IoT
TechWiseTV Workshop: Extending Intent-Based Networking to IoTTechWiseTV Workshop: Extending Intent-Based Networking to IoT
TechWiseTV Workshop: Extending Intent-Based Networking to IoT
 
Speed up your Machine Learning workflows with built-in algorithms - Tel Aviv ...
Speed up your Machine Learning workflows with built-in algorithms - Tel Aviv ...Speed up your Machine Learning workflows with built-in algorithms - Tel Aviv ...
Speed up your Machine Learning workflows with built-in algorithms - Tel Aviv ...
 
Speed up your Machine Learning workflows with build-in algorithms
Speed up your Machine Learning workflows with build-in algorithmsSpeed up your Machine Learning workflows with build-in algorithms
Speed up your Machine Learning workflows with build-in algorithms
 
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
 
21555577938.ppt
21555577938.ppt21555577938.ppt
21555577938.ppt
 
Pitch v2.2
Pitch v2.2Pitch v2.2
Pitch v2.2
 

Dernier

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 

Dernier (20)

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 

Chainer向けChannel Pruningフレームワークの設計と実装

  • 1. © DeNA Co., Ltd. Chaienr Channel Pruning December 15, 2018 Tomohiro Kato AI System Dept. DeNA Co., Ltd.
  • 2. © DeNA Co., Ltd. 2
  • 3. © DeNA Co., Ltd. 3
  • 4. © DeNA Co., Ltd. n u o PV n ) d d n rRpR h D C ) n ( A 18 8 l cg a st n ) 2 8 e nyiMLNm T I n (728 D 1 01 D 8 n )8 8 7e A 8 I n ) 2 8 e nyi ( / n A 01 4
  • 5. © DeNA Co., Ltd. n CV 5 https://www.slideshare.net/ShotaSuzuki2/mlops-shibuyasynapse-4-125602323 https://dena.ai/work6/
  • 6. © DeNA Co., Ltd. n Deep Learning … HW n Channel Pruning ChainerMeetup → 6
  • 7. © DeNA Co., Ltd. Channel Pruning n Channel Pruning Deep Learning Weight CPU/GPU / n Optuna Pruning ChainerPruningExtension 7
  • 8. © DeNA Co., Ltd. n ChainerCV ResNet50 channel pruning 8 MacBook Pro CPU, Chainer v5.1.0
  • 9. © DeNA Co., Ltd. demo 9
  • 10. © DeNA Co., Ltd. ChainerPruner n https://github.com/DeNA/ChainerPruner n Channel Pruning n Channel Pruning n Under development 10
  • 11. © DeNA Co., Ltd. ChainerPruner n Pruning Channel Pruning n Pruning Channel Pruning 11
  • 12. © DeNA Co., Ltd. Dynamic Pruning n Pruning Weight n Pruning Weight shape 1/0 0 Iteration n Pruning load :benri: 12
  • 13. © DeNA Co., Ltd. Mask and Rebuild n Weight -step Mask: Weight Rebuild: Weight n Mask L2 N-% chainerpruner.Mask 13
  • 14. © DeNA Co., Ltd. Rebuild mechanism n Channel Pruning n Conv – BN – FC Conv Pruning Bn FC Bn, FC input channel Conv output channel update n n Conv - BN - Pool - ConvDW – FC Link Function ChainerPruner n 14
  • 15. © DeNA Co., Ltd. Rebuild mechanism n 15
  • 16. © DeNA Co., Ltd. Serializers n Pruning Weight n Link Pruning Weight 16
  • 17. © DeNA Co., Ltd. Utility n https://github.com/belltailjp/chainer_computational_cost wrapper n pruning n / / 17
  • 18. © DeNA Co., Ltd. n ChainerPruner https://github.com/DeNA/ChainerPruner Channel Pruning n Future work ChainerX support Pruning Reporter tensorboardX Chainer 18
  • 19. © DeNA Co., Ltd. 19 EOF