A transformer-based framework with finetuning as the first class citizen.
Project description
Temp instruction
Install
pip install SwissArmyTransformer
Run CogView2
cd examples/cogview2
./scripts/text2image_cogview2.sh
Run GLM
- Prepare input.txt. Example: "Welcome! This is the main page of SwissArmyTransformer".
- Run the following commands:
cd examples/glm
./scripts/generate_glm.sh config/model_glm_10B_chinese.sh
Output: [CLS]Welcome! This is the main page of SwissArmyTransformer. It is a comprehensive and clear explanation of the technical problems in the transformer. It is also an introduction to the development of the SwissArmy transformers. Welcome to Swiss Army Transforters. This is the main page of Swiss army tranforter. It's a complete and clean explaination of technology problem in the Tranformer, which is an integral part of the army's technological development. It also anintroduction of the developments of the Army technicians. Well, if you have any questions, please feel free to contact the official webs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SwissArmyTransformer-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31cf586dce5a129186b425cbcf0184035e00917bef94e281f66937753b8b9371 |
|
MD5 | 0b69faed032bfbeace0d729513f7d83f |
|
BLAKE2b-256 | a812c0ba702a9a6e71ed2dfe33ec1358d02a8b8d5cbbdbb9ac5cc2c3e7c64cfc |
Hashes for SwissArmyTransformer-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a582f9d1270c50a4ad232b426d9bc43a17b340009968136948ce508711c05124 |
|
MD5 | e8430f959317b0442d170a1ffd8369b9 |
|
BLAKE2b-256 | bf91f3e5528b0fbb703683d6fb08090be18f14040c25a2b1d28e3598a20bb335 |