mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-15 13:52:06 +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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::collections::HashMap;
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tracing::info_span;
|
use tracing::info_span;
|
||||||
|
|
||||||
@ -430,7 +429,7 @@ mod tests {
|
|||||||
frequency_penalty: 0.0,
|
frequency_penalty: 0.0,
|
||||||
watermark: false,
|
watermark: false,
|
||||||
grammar: None,
|
grammar: None,
|
||||||
logit_bias: HashMap::new(),
|
logit_bias: None,
|
||||||
},
|
},
|
||||||
stopping_parameters: ValidStoppingParameters {
|
stopping_parameters: ValidStoppingParameters {
|
||||||
ignore_eos_token: false,
|
ignore_eos_token: false,
|
||||||
|
@ -577,7 +577,7 @@ mod tests {
|
|||||||
frequency_penalty: 0.0,
|
frequency_penalty: 0.0,
|
||||||
watermark: false,
|
watermark: false,
|
||||||
grammar: None,
|
grammar: None,
|
||||||
logit_bias: HashMap::new(),
|
logit_bias: None,
|
||||||
},
|
},
|
||||||
stopping_parameters: ValidStoppingParameters {
|
stopping_parameters: ValidStoppingParameters {
|
||||||
ignore_eos_token: false,
|
ignore_eos_token: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user