Giter Site home page Giter Site logo

tutorials's Introduction

SambaNova tutorials

This repository contains SambaNova tutorials that help you to learn more about the SambaNova platform. Each tutorial includes instructions for preparing the dataset, the code to run the model, and pointers to code discussions in our public documentation.

Start with the "Hello, World" tutorial, which uses a very simple model and the MNIST dataset. You follow some basic steps to run this ML models on the SambaNova platform.

Use the LeNet tutorial to experience a full ML workflow:

  1. Compile the model for SambaNova processors (RDU)

  2. Train the model using a publicly available dataset

  3. Save intermediate checkpoints and continue training from a checkpoint

  4. Run inference using one of the checkpoints and generate a predictions file

  5. Visualize predictions using Jupyter

Go through the generative_nlp tutorial to work with a Hugging Face model in the SambaNova environment.

  1. Download a GPT-2 model (we’ve chosen a simple model to speed up compilation and fine tuning).

  2. Download and prepare a dataset.

  3. Compile the model.

  4. Fine tune the compiled model using the labeled dataset.

  5. Perform inference with the unlabeled dataset to verify that training worked.

How to use SambaNova tutorials

  1. Clone this repository

    $ git clone https://github.com/sambanova/tutorials.git
  2. Enter one of the directories, e.g. hello_world:

    $ cd tutorials
    # Start with the 'Hello world'
    $ cd hello_world
    # Or choose the intermediate tutorial that uses LeNet
    $ cd lenet
  3. Follow the instructions in the README file.

Feedback

Please provide your feedback at [email protected].

tutorials's People

Contributors

snova-pavela avatar

Stargazers

John-Luke Navarro avatar Mark avatar  avatar Ryan Yard avatar Renate Kempf avatar  avatar Matt Wright avatar Pavel Anni avatar

Watchers

 avatar

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.