8 lines
171 B
8 lines
171 B
1 year ago
|
from swarms.models import Mistral
|
||
|
|
||
1 year ago
|
model = Mistral(device="cuda", use_flash_attention=True)
|
||
1 year ago
|
|
||
|
prompt = "My favourite condiment is"
|
||
|
result = model.run(prompt)
|
||
1 year ago
|
print(result)
|