No project description provided
Project description
Imitater
Usage
Create a .env
file in the root directory:
.
├── src
└── .env
# imitater
AGENT_TYPE=react
CHAT_MODEL_PATH=Qwen/Qwen-14B-Chat
CHAT_MODEL_DEVICE=0
CHAT_TEMPLATE_PATH=templates/qwen.jinja
GENERATION_CONFIG_PATH=generation_config/qwen
EMBED_MODEL_PATH=BAAI/bge-small-zh-v1.5
EMBED_MODEL_DEVICE=1
EMBED_BATCH_SIZE=16
SERVICE_PORT=8010
# tests
OPENAI_BASE_URL=http://192.168.0.1:8010/v1
OPENAI_API_KEY=0
[!NOTE] Chat template is required for the chat models.
Launch Server
python src/launch.py
Test Server
python tests/test_openai.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imitater-0.1.4.tar.gz
(18.4 kB
view hashes)
Built Distribution
imitater-0.1.4-py3-none-any.whl
(22.1 kB
view hashes)