Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Default Pad Tokens to [EOS], Update requirements.txt #47

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions alfred/fm/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def _generate_batch(
inputs = batch
else:
if padding:
self.tokenizer.pad_token = self.tokenizer.eos_token
inputs = self.tokenizer(batch,
return_tensors="pt",
padding=True)
Expand Down
35 changes: 35 additions & 0 deletions docs/alfred/fm/vllm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Vllm

[Alfred Index](../../README.md#alfred-index) /
[Alfred](../index.md#alfred) /
[Fm](./index.md#fm) /
Vllm

> Auto-generated documentation for [alfred.fm.vllm](../../../alfred/fm/vllm.py) module.
- [Vllm](#vllm)
- [vLLMModel](#vllmmodel)

## vLLMModel

[Show source in vllm.py:18](../../../alfred/fm/vllm.py#L18)

vLLMModel wraps a vLLM model. vLLM is a fast and easy-to-use library for LLM inference.

source: https://github.com/vllm-project/vllm

#### Signature

```python
class vLLMModel(LocalAccessFoundationModel):
def __init__(
self, model: str, model_string: str, local_dir: str = None, **kwargs: Any
):
...
```

#### See also

- [LocalAccessFoundationModel](./model.md#localaccessfoundationmodel)