mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-11 03:42:08 +00:00
fix: remove deprecated test and fix typing
This commit is contained in:
parent
81656bd016
commit
bb5c875f0b
26
.github/workflows/client-tests.yaml
vendored
26
.github/workflows/client-tests.yaml
vendored
@ -1,26 +0,0 @@
|
||||
name: Python Client Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/client-tests.yaml"
|
||||
- "clients/python/**"
|
||||
|
||||
jobs:
|
||||
run_tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install
|
||||
run: |
|
||||
cd clients/python && pip install .
|
||||
- name: Run tests
|
||||
run: |
|
||||
pip install pytest pytest-asyncio
|
||||
export HF_TOKEN=${{ secrets.HF_TOKEN }}
|
||||
make python-client-tests
|
@ -401,7 +401,6 @@ impl From<ValidStoppingParameters> for StoppingCriteriaParameters {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use tracing::info_span;
|
||||
|
||||
@ -430,7 +429,7 @@ mod tests {
|
||||
frequency_penalty: 0.0,
|
||||
watermark: false,
|
||||
grammar: None,
|
||||
logit_bias: HashMap::new(),
|
||||
logit_bias: None,
|
||||
},
|
||||
stopping_parameters: ValidStoppingParameters {
|
||||
ignore_eos_token: false,
|
||||
|
@ -577,7 +577,7 @@ mod tests {
|
||||
frequency_penalty: 0.0,
|
||||
watermark: false,
|
||||
grammar: None,
|
||||
logit_bias: HashMap::new(),
|
||||
logit_bias: None,
|
||||
},
|
||||
stopping_parameters: ValidStoppingParameters {
|
||||
ignore_eos_token: false,
|
||||
|
Loading…
Reference in New Issue
Block a user