Commit ad4e00a
committed
[torchAPI] Inherit cuda stream from torch (#618)
When we work through `torch.compile` we didn't inherit the stream from torch. Fix it.
PR fixes issue #563
Tested with the main branch of vllm cloned 28th of Nov. Options
`--model meta-llama/Llama-3.1-8B-Instruct --max_model_len 4000`
Before output was
```
about!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
```
after
```
about a cat named Whiskers
Once upon a time, in a cozy little house on a quiet street, there lived a beautiful and elegant cat named Whiskers. Whiskers was a stunning feline with shimmering grey fur, bright green eyes, and a delicate pink nose. She was a gentle soul, with a soft and soothing purr that could calm even the most anxious of hearts.
Whiskers lived with her loving owner, a kind old lady named Mrs. Jenkins, who adored her dearly. Mrs. Jenkins had rescued Whiskers from a shelter when she was just a tiny kitten, and the two had been inseparable ever since. Whiskers spent her days lounging in the sunbeams that streamed through the windows, chasing the occasional fly, and purring contentedly as Mrs. Jenkins stroked her soft fur.
But Whiskers was more than just a lazy cat. She had a secret life, one that few people knew about. You```
```
as expected.1 parent ffdbde4 commit ad4e00a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
0 commit comments