Giter VIP home page Giter VIP logo

llmfarm-minicpm's Introduction

LLMFarm-MiniCPM

中文版

Based on LLMFarm, we run MiniCPM on ios devices. Note that the models run on ios are quantized to 4-bit and may lose some performance. The original models can be found here.

Deploy MiniCPM on IOS

The first method is to directly download our converted model,You can skip the subsequent conversion steps.

The second method is to download the original model from the huggingface and follow the steps below to convert and quantify it.

convert model

  1. downloading model
  2. git clone https://github.com/OpenBMB/llama.cpp.git
  3. cd llama.cpp && make -j8
  4. python3 convert.py ${hf_model_dir} --vocab-type hfft --outtype f32
  5. ./quantize ${hf_model_dir}/ggml-model-f32.gguf ${output_dir}/minicpm-q4_1.gguf q4_1

compile

  1. git clone https://github.com/OpenBMB/LLMFarm-MiniCPM.git
  2. cd LLMFarm-MiniCPM && git submodule update --init --recursive
  3. Open this project with Xcode
  4. Setting Siging & Capabilities
  5. Select a device My MaC or your iphone
  6. run
image

chat

  1. add chat
  2. select a model
  3. Set template: CPM
  4. Start chat
image image image

llmfarm-minicpm's People

Contributors

guinmoon avatar ljzd-pro avatar zkh2016 avatar thucsthanxu13 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.