GithubHelp home page GithubHelp logo

raymondwang0 / llama.cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ggerganov/llama.cpp

1.0 0.0 0.0 10.44 MB

Port of Facebook's LLaMA model in C/C++

License: MIT License

Shell 1.42% C++ 28.50% Python 5.91% C 45.39% Objective-C 2.76% Cuda 9.99% Swift 0.06% Nix 0.19% Makefile 0.78% CMake 1.35% Metal 3.32% Dockerfile 0.13% Zig 0.20%

llama.cpp's Introduction

llama.cpp

Run StarCoder

# compile
make -j

# obtain the StarCoder model weights and place them in ./models
git clone https://huggingface.co/bigcode/starcoder
mv starcoder ./models
ls ./models/starcoder

# install Python environment and dependencies
conda create -n llama_cpp python=3.10
conda activate llama_cpp
pip install -r requirements.txt

# convert the 7B model to ggml FP16 format
python convert-hf-to-gguf.py models/starcoder/

# quantize the model to 4-bits (using q4_0 method)
./quantize ./models/starcoder/ggml-model-f16.gguf ./models/starcoder/ggml-model-q4_0.gguf q4_0


# run the inference
./main -m ./models/starcoder/ggml-model-q4_0.gguf -p "# Dijkstra's shortest path algorithm in Python (4 spaces indentation) + complexity analysis:\n\n" -e -t 4 --temp -1 -n 128

llama.cpp's People

Contributors

ggerganov avatar slaren avatar cebtenzzre avatar johannesgaessler avatar ikawrakow avatar kerfufflev2 avatar sw avatar prusnak avatar jhen0409 avatar howard0su avatar anzz1 avatar slyecho avatar dannydaemonic avatar green-sky avatar ejones avatar xaedes avatar lshzh-ww avatar monatis avatar crd716 avatar ivanstepanovftw avatar li-plus avatar comex avatar goerch avatar shibe2 avatar tjohnman avatar alonfaraj avatar freed-wu avatar staviq avatar raymondwang0 avatar mqy avatar

Stargazers

Jimmy Shong 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.