Downloads · 30 days
13
34% of all-time downloads
satyam-sundaram/simpli
simpli is a machine learning model from satyam-sundaram. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project runs a FastAPI server (python) and serves a Large-language-model using the llamacpp library (llama-cpp-python binding).
Downloads · 30 days
13
34% of all-time downloads
All-time downloads
38
Public
Repo size
21.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf8.2 GB · 100%
From the Hugging Face model README
This project runs a FastAPI server (python) and serves a Large-language-model
using the llama_cpp library (llama-cpp-python binding).
| app/ : contains code for the FastAPI
| | config/
| | | model_init.json : configs for model being served.
| | llm_lib/
| | | chat.py : Objects for request/response by the server.
| | | llm_logger.py : logging library [overkill].
| | | llm_models.py : Wrapper class over "Llama" model. [no real benefit?]
| | | model_init.py : LLM manager - initializes the model based on config.
| | server/
| | | server.py : FastAPI server.
| | testing/
| | | api_testing.py : for testing a set of questions against a llm.
| | | prompt.json : sample request-data for the API server.
| | | questions.json : a set of 80 questions for evaluating the model.
| | Makefile : has functions to execute server/tests.
| models/ : quantized models [using llama.cpp binaries]
| README.md
Firstly configure the config/model_init.json file by providing the "model_path" field.
This project is built using llama_cpp the model's format is GGUF.
start FastAPI server with reload (for development use-case):
make start_dev
start FastAPI server without reload:
make start
initialize a new model [serve a different model without restart the server]
Set the "force_init" to true in config/model_init.json, then run -
make initialize
NOTE: The server loads the model in the model_init.json during startup.
Sanity testing - make sure the server is running.
make chat
This uses "testing/prompt.json" file for POST request.