简体中文 | English
Self-Hosted AI
The API interface of this project is compatible with openai, and various open-source projects using openai can be easily adapted. In addition, I also call on everyone to develop compatible API interfaces in a similar way, which is conducive to the development of related applications.
Go to release to download packaged files
Use update.bat
to update (without models)
Define the ngrok_token
environment variable to expose the API to the internet
Usage Example
Go to https://github.com/josStorer/chatGPTBox, and switch to the following API mode to quickly experience:
Chat
-
- 6MB Online Installation Program
- See more in RWKV-Runner
-
- Offline
- This package is based on ChatGLM, open-sourced under the Apache-2.0 license. The built-in model is a trimmed version of https://huggingface.co/silver/chatglm-6b-int4-slim.
- After unzipping, double-click on the corresponding model file to run. For example,
llama.bat
to run the llama model, orchatglm.bat
to run the chatglm model.
- Self-Hosted
- Click the link above to go to Huggingface, copy the space, switch the CPU to the second 8-core for a fast
experience, at this time the API address is,
[your name]-[repository name].hf.space
, for example, if I copy and set the name totest
, then my URL would behttps://josstorer-test.hf.space/chat/completions
- Click the link above to go to Huggingface, copy the space, switch the CPU to the second 8-core for a fast
experience, at this time the API address is,
- When used with ChatGPTBox, the model name needs to be set to
chatglm-6b-int4
- Offline
-
- Offline
- This package is based on llama.cpp. Built-in command line interactive program is the version I modified to support unicode input on windows, the built-in model is from Chinese-LLaMA-Alpaca
- Run
get_llama_model.sh
in WSL or Linux environment to get models. If you already have the model, directly replace themodels/llama.cpp/ggml-model-q4_0.bin
file. - After unzipping, double-click on the corresponding model file to run. For example,
llama.bat
to run the llama model, orchatglm.bat
to run the chatglm model.
- When used with ChatGPTBox, the model name needs to be set to
llama-7b-int4
- Offline