Skip to content

Commit

Permalink
server : (refactor) no more json in server_task input (#10691)
Browse files Browse the repository at this point in the history
* server : (refactor) no more json in server_task input

* add test for slots endpoint

* add tests for /props and /slots

* remove task inf_type

* fix CI by adding safe_json_to_str

* add "model_path" to /props

* update readme
  • Loading branch information
ngxson authored Dec 7, 2024
1 parent d9c3ba2 commit 3573fa8
Show file tree
Hide file tree
Showing 6 changed files with 427 additions and 384 deletions.
2 changes: 2 additions & 0 deletions examples/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,12 +687,14 @@ This endpoint is public (no API key check). By default, it is read-only. To make
}
},
"total_slots": 1,
"model_path": "../models/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf",
"chat_template": "..."
}
```

- `default_generation_settings` - the default generation settings for the `/completion` endpoint, which has the same fields as the `generation_settings` response object from the `/completion` endpoint.
- `total_slots` - the total number of slots for process requests (defined by `--parallel` option)
- `model_path` - the path to model file (same with `-m` argument)
- `chat_template` - the model's original Jinja2 prompt template

### POST `/props`: Change server global properties.
Expand Down
Loading

0 comments on commit 3573fa8

Please sign in to comment.