forked from oumi-ai/oumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8b_rvllm_infer.yaml
45 lines (41 loc) · 1.43 KB
/
8b_rvllm_infer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Inference config for Llama 8B Instruct.
#
# Usage:
# oumi infer -i -c configs/recipes/llama3_1/inference/8b_rvllm_infer.yaml
#
# Sample command to start vLLM server:
# python -u -m vllm.entrypoints.openai.api_server \
# --port 6864 \
# --model meta-llama/Meta-Llama-3.1-8B-Instruct \
# --trust-remote-code \
# --dtype=bfloat16 \
# --device=cuda \
# --max-model-len 2048 \
# --enforce-eager \
# --disable-custom-all-reduce \
# --disable-log-requests \
# --max_num_seqs=2 \
# --enable-chunked-prefill=false \
# --gpu-memory-utilization=0.95 \
# --tensor-parallel-size 1
#
# See Also:
# - Documentation: https://oumi.ai/docs/en/latest/user_guides/infer/infer.html
# - Config class: oumi.core.configs.InferenceConfig
# - Config source: https://github.com/oumi-ai/oumi/blob/main/src/oumi/core/configs/inference_config.py
# - Other inference configs: configs/**/inference/
model:
model_name: "meta-llama/Meta-Llama-3.1-8B-Instruct"
adapter_model: null # Update for LoRA-tuned models.
model_max_length: 2048
torch_dtype_str: "bfloat16"
attn_implementation: "sdpa"
load_pretrained_weights: True
trust_remote_code: True
generation:
max_new_tokens: 2048
remote_params:
# This address is just an example (it's what you may get when you start vllm sever locally).
# For details, see https://platform.openai.com/docs/api-reference/chat/create
api_url: "http://localhost:6864/v1/chat/completions"
engine: REMOTE_VLLM