GithubHelp home page GithubHelp logo

neodemosqwen's Introduction

What is this project about

This is just a project of Qwen demos.

How to build

  1. install python 3.10+

  2. update pip

    python -m pip install --upgrade pip
  1. install packages
    # 必须:安装requirements
    python -m venv venv
    . venv/bin/activate
    pip install -r requirements.txt

    # 可选:安装flash-attention提升计算效率(显卡要支持)
    git clone https://github.com/Dao-AILab/flash-attention
    cd flash-attention && pip install .
    # 下方安装可选,安装可能比较缓慢
    # pip install csrc/layer_norm
    # 如果flash-attn版本高于2.1.1,下方无需安装
    # pip install csrc/rotary
  1. 要匹配cuda版本及pytorch版本
# 查询cuda版本及pytorch版本
https://pytorch.org/get-started/locally/
https://developer.nvidia.com/cuda-toolkit-archive

# 下载所需cuda,比如118
# 
# 安装对应版本的pytorch
# pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

# 测试一下
import torch
print(torch.cuda.is_available())
  1. run
    python -m venv venv
    python chat_demo01.py

Reference

neodemosqwen's People

Contributors

neohope 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.