Comments (2)
You just set the flash_attention
parameter when create the Generator:
generator = ctranslate2.Generator(model_dir, device="cuda", flash_attention=True)
from ctranslate2.
You can also go to the documents and search for "flash" and it'll give you links to how to use it for the "generator" as well as other parts of CT2!
from ctranslate2.
Related Issues (20)
- No kernel image is available for execution on the device HOT 1
- Use generator as translator? HOT 3
- Does fairseq transform align can returns the alignment result? HOT 3
- Running Llama3 like a genius (that I am not) [SOLVED]: HOT 2
- Phi-3 support HOT 9
- faster-whisper inferencing problem HOT 2
- Congrats on flash attention, now how do I run it??? HOT 3
- BENCHmarking new flash attention! HOT 10
- [Feature Request] add a classification / estimation layer on top of Encoders HOT 1
- Anomalous T5 results using GPU inference on a 4090 graphics card HOT 3
- [Feature Request] Support Epsilon Sampling
- New Flash Attention Error HOT 8
- Build Ctranslate2 for android HOT 1
- OpenELM Support
- Problem converting Phi3-instruct-128k; "su" rope scaling in Phi-3 HOT 3
- Dynamic LoRA switching HOT 1
- [SOLVED] Running Llama3 with Ctranslate2 HOT 4
- target_prefix latency HOT 2
- Unexpected inference results from Flan-T5 XXL converted to ctranslate2 with version 4.2.1 and 4.1.1 (using tensor parallel) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctranslate2.