OPEA LLM microservice upon eval docker image for GenAI application
1.3K
This microservice, designed for lm-eval, which can host a separate llm server to evaluate lm-eval tasks.
docker build -f Dockerfile.cpu -t opea/lm-eval:latest .
MODEL, MODEL_ARGS, DEVICE and start the serverdocker run -p 9006:9006 --ipc=host -e MODEL="hf" -e MODEL_ARGS="pretrained=Intel/neural-chat-7b-v3-3" -e DEVICE="cpu" opea/lm-eval:latest
base_url and tokenizergit clone https://github.com/opea-project/GenAIEval
cd GenAIEval
pip install -e .
cd GenAIEval/evaluation/lm_evaluation_harness/examples
python main.py \
--model genai-hf \
--model_args "base_url=http://{your_ip}:9006,tokenizer=Intel/neural-chat-7b-v3-3" \
--tasks "lambada_openai" \
--batch_size 2
Content type
Image
Digest
sha256:7f8575d21…
Size
3.3 GB
Last updated
over 1 year ago
docker pull opea/llm-eval