GithubHelp home page GithubHelp logo

nana2929 / language-model-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from profatxuanall/language-model-playground

0.0 0.0 0.0 2.04 MB

Language model implementation using PyTorch.

Home Page: https://language-model-playground.readthedocs.io/en/latest/index.html

License: Other

Python 100.00%

language-model-playground's Introduction

Language Model Playground

Neural network based Language Model implemented with PyTorch. See documentation for more details.

Environment Prerequest

  1. We use Python with version 3.8+. You can install Python with

    apt install python3.8 python3.8-dev

    Note

    Currently the latest version of Python supported by PyTorch is 3.8. That's why we install python3.8 instead of python3.10. You might need to use sudo to perform installation.

  2. We use PyTorch with version 1.10+ and CUDA with version 11.2+. This only work if you have Nvidia GPUs. You can install CUDA library with

    apt install nvidia-driver-460

    Note

    You might need to use sudo to perform installation.

  3. We use pipenv to install Python dependencies. You can install pipenv with

    pip install pipenv

    Warning

    Do not use apt to intall pipenv.

    Note

    You might want to set environment variable PIPENV_VENV_IN_PROJECT=1 to make virtual environment folders always located in your Python projects. See pipenv document for details.

Installation

  1. Clone the project from GitHub.

    git clone https://github.com/ProFatXuanAll/language-model-playground.git
  2. Change current directory to language-model-playground.

    cd language-model-playground
  3. Use pipenv to create Python virtual environment and install dependencies in Python virtual environment.

    pipenv install
  4. Launch Python virtual environment created by pipenv.

    pipenv shell
  5. Now you can run any scripts provided by this project! For example, you can take a look at chinese poem dataset by running :pylmp.script.sample_dset

    python -m lmp.script.sample_dset chinese-poem

LICENSE

Beerware license. Anyone used this project must buy ProFatXuanAll a beer if you met him.

language-model-playground's People

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.