Add support for Falcon as part of Transformers 4.33.0, including new Falcon 180B #326
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Falcon 180B is out:
https://huggingface.co/tiiuae/falcon-180B
https://huggingface.co/tiiuae/falcon-180B-Chat
It's now integrated into Transformers as of 4.33.0, and its name has changed to
falcon
(fromRefinedModel
).This simple PR allows for that change. Support for
falcon
is added only if the user is on Transformers 4.33.0 or greater. Likewise the PR doesn't bump the minimum Transformers version as I didn't know if that would impact on any of the Transformers integration stuff. So it will be up to the user to update Transformers themselves.I have made this change locally and my quants of Falcon 180B Chat appear to be progressing fine, though I won't be able to test the result for a few hours:
![image](https://private-user-images.githubusercontent.com/784313/266085981-929b8f85-077b-44f8-bd43-afa9b6923c31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5Mzg5MzQsIm5iZiI6MTcxODkzODYzNCwicGF0aCI6Ii83ODQzMTMvMjY2MDg1OTgxLTkyOWI4Zjg1LTA3N2ItNDRmOC1iZDQzLWFmYTliNjkyM2MzMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQwMjU3MTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZmY4ZDg5OWYxYTkyMTBhZTczZTYyMWM4MGI2NzFiODhhYWUxYjdiOGMzNWFiOWZkNWU0MGZmMTkwZDI5MjRiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-QSwtv5PCzT0aKZGEj_TzWEHlCNJ5dIASms8KooDq5c)