text-generation-inference/integration-tests
drbh b2fc097b2b feat: adds phi model (#1442)
This PR adds basic modeling for phi-2

run
```bash
text-generation-server \
    serve \
    microsoft/phi-2 \
    --revision 834565c23f9b28b96ccbeabe614dd906b6db551a
```

test
```bash
curl -s localhost:3000/generate \
   -X POST \
   -d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":20}}' \
   -H 'Content-Type: application/json' | jq .
```

notes
- recently (~1 day ago) the Phi weights and model were updated to
accommodate adding [GQA/MQA attention to the
model.](https://github.com/huggingface/transformers/pull/28163) This
impl expects the original model format so a fixed revision is required
at the moment.
- this PR only includes a basic implementation of the model and can
later be extended for support Flash and Sharded versions as well as make
use of better optimization
2024-04-22 13:06:38 +03:00
..
models feat: adds phi model (#1442) 2024-04-22 13:06:38 +03:00
conftest.py chore: formatting 2024-04-18 16:26:00 +03:00
poetry.lock New release. (#941) 2023-08-29 14:28:22 +02:00
pyproject.toml v1.3.4 2024-04-22 09:08:34 +03:00
pytest.ini feat(server): Rework model loading (#344) 2023-06-08 14:51:52 +02:00
requirements.txt New release. (#941) 2023-08-29 14:28:22 +02:00