<commit_before>---
layout: article
title:  "Caffe"
excerpt: "Guide to hosting your Caffe deep learning model on Algorithmia."
categories: model-guides
tags: [algo-model-guide]
show_related: true
author: steph_kim
permalink: /model-deployment/caffe/
redirect_from:
  - /algorithm-development/model-guides/caffe/
image:
    teaser: /language_logos/caffe.png
---


Welcome to hosting your <a href="http://caffe.berkeleyvision.org/">Caffe</a> model on Algorithmia!

This guide is designed as an introduction to hosting a Caffe model and publishing an algorithm even if you’ve never used Algorithmia before.

## Table of Contents
* [Prerequisites](#prerequisites)
  * [Save your Pre-Trained Model](#save-your-pre-trained-model)
  * [Create a Data Collection](#create-a-data-collection)
  * [Host Your Model File](#host-your-model-file)
* [Create your Algorithm](#create-your-algorithm)<commit_msg>added comment about needing to create algo in Python2 GPU<commit_after>---
layout: article
title:  "Caffe"
excerpt: "Guide to hosting your Caffe deep learning model on Algorithmia."
categories: model-guides
tags: [algo-model-guide]
show_related: true
author: steph_kim
permalink: /model-deployment/caffe/
redirect_from:
  - /algorithm-development/model-guides/caffe/
image:
    teaser: /language_logos/caffe.png
---


Welcome to hosting your <a href="http://caffe.berkeleyvision.org/">Caffe</a> model on Algorithmia!

This guide is designed as an introduction to hosting a Caffe model and publishing an algorithm even if you’ve never used Algorithmia before.

**Currently we support Caffe, with Caffe2 support coming soon. When you create an algorithm be sure to create it as a Python2 GPU-enabled algorithm, but if you don't need GPU's simply add `caffe.set_mode_cpu()` to your algorithm as shown below in the code example.**

## Table of Contents
* [Prerequisites](#prerequisites)
  * [Save your Pre-Trained Model](#save-your-pre-trained-model)
  * [Create a Data Collection](#create-a-data-collection)
  * [Host Your Model File](#host-your-model-file)
* [Create your Algorithm](#create-your-algorithm)
{'fraction_non_alphanumeric': 0.10877862595419847, 'fraction_numerical': 0.0014312977099236641, 'mean_word_length': 4.85754189944134, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2624527', 'n_tokens_mistral': 664, 'n_tokens_neox': 626, 'n_words': 215}