Commit 
							
							·
						
						1fa85fd
	
1
								Parent(s):
							
							df31f67
								
Update HuggingFace transformers support
Browse files- README.md +2 -8
- config.json +67 -1
- generation_config.json +1 -1
    	
        README.md
    CHANGED
    
    | @@ -18,6 +18,7 @@ library_name: transformers | |
| 18 | 
             
            <img src="assets/EXAONE_Symbol+BI_3d.png", width="300", style="margin: 40 auto;">
         | 
| 19 | 
             
            🎉 License Updated! We are pleased to announce our more flexible licensing terms 🤗
         | 
| 20 | 
             
            <br>✈️ Try on <a href="https://friendli.ai/suite/~/serverless-endpoints/LGAI-EXAONE/EXAONE-4.0-32B/overview">FriendliAI</a>
         | 
|  | |
| 21 | 
             
            <br>
         | 
| 22 |  | 
| 23 | 
             
            # EXAONE-4.0-32B
         | 
| @@ -48,14 +49,7 @@ For more details, please refer to our [technical report](https://arxiv.org/abs/2 | |
| 48 |  | 
| 49 | 
             
            ## Quickstart
         | 
| 50 |  | 
| 51 | 
            -
            You should install the transformers library  | 
| 52 | 
            -
            Once this PR is merged and released, we will update this section. 
         | 
| 53 | 
            -
             | 
| 54 | 
            -
            You can install the latest version of transformers with support for EXAONE 4.0 by following the command:
         | 
| 55 | 
            -
             | 
| 56 | 
            -
            ```bash
         | 
| 57 | 
            -
            pip install git+https://github.com/lgai-exaone/transformers@add-exaone4
         | 
| 58 | 
            -
            ```
         | 
| 59 |  | 
| 60 | 
             
            ### Non-reasoning mode
         | 
| 61 |  | 
|  | |
| 18 | 
             
            <img src="assets/EXAONE_Symbol+BI_3d.png", width="300", style="margin: 40 auto;">
         | 
| 19 | 
             
            🎉 License Updated! We are pleased to announce our more flexible licensing terms 🤗
         | 
| 20 | 
             
            <br>✈️ Try on <a href="https://friendli.ai/suite/~/serverless-endpoints/LGAI-EXAONE/EXAONE-4.0-32B/overview">FriendliAI</a>
         | 
| 21 | 
            +
            <br><br><i>📢 EXAONE 4.0 is officially supported by HuggingFace transformers! Please check out the guide <a href="#quickstart">below</a></i>
         | 
| 22 | 
             
            <br>
         | 
| 23 |  | 
| 24 | 
             
            # EXAONE-4.0-32B
         | 
|  | |
| 49 |  | 
| 50 | 
             
            ## Quickstart
         | 
| 51 |  | 
| 52 | 
            +
            You should install the transformers library with version >= `4.54.0`.
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 53 |  | 
| 54 | 
             
            ### Non-reasoning mode
         | 
| 55 |  | 
    	
        config.json
    CHANGED
    
    | @@ -10,6 +10,72 @@ | |
| 10 | 
             
              "hidden_size": 5120,
         | 
| 11 | 
             
              "initializer_range": 0.02,
         | 
| 12 | 
             
              "intermediate_size": 27392,
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 13 | 
             
              "max_position_embeddings": 131072,
         | 
| 14 | 
             
              "model_type": "exaone4",
         | 
| 15 | 
             
              "num_attention_heads": 40,
         | 
| @@ -29,7 +95,7 @@ | |
| 29 | 
             
              "sliding_window_pattern": "LLLG",
         | 
| 30 | 
             
              "tie_word_embeddings": false,
         | 
| 31 | 
             
              "torch_dtype": "bfloat16",
         | 
| 32 | 
            -
              "transformers_version": "4.54.0 | 
| 33 | 
             
              "use_cache": true,
         | 
| 34 | 
             
              "vocab_size": 102400
         | 
| 35 | 
             
            }
         | 
|  | |
| 10 | 
             
              "hidden_size": 5120,
         | 
| 11 | 
             
              "initializer_range": 0.02,
         | 
| 12 | 
             
              "intermediate_size": 27392,
         | 
| 13 | 
            +
              "layer_types": [
         | 
| 14 | 
            +
                "sliding_attention",
         | 
| 15 | 
            +
                "sliding_attention",
         | 
| 16 | 
            +
                "sliding_attention",
         | 
| 17 | 
            +
                "full_attention",
         | 
| 18 | 
            +
                "sliding_attention",
         | 
| 19 | 
            +
                "sliding_attention",
         | 
| 20 | 
            +
                "sliding_attention",
         | 
| 21 | 
            +
                "full_attention",
         | 
| 22 | 
            +
                "sliding_attention",
         | 
| 23 | 
            +
                "sliding_attention",
         | 
| 24 | 
            +
                "sliding_attention",
         | 
| 25 | 
            +
                "full_attention",
         | 
| 26 | 
            +
                "sliding_attention",
         | 
| 27 | 
            +
                "sliding_attention",
         | 
| 28 | 
            +
                "sliding_attention",
         | 
| 29 | 
            +
                "full_attention",
         | 
| 30 | 
            +
                "sliding_attention",
         | 
| 31 | 
            +
                "sliding_attention",
         | 
| 32 | 
            +
                "sliding_attention",
         | 
| 33 | 
            +
                "full_attention",
         | 
| 34 | 
            +
                "sliding_attention",
         | 
| 35 | 
            +
                "sliding_attention",
         | 
| 36 | 
            +
                "sliding_attention",
         | 
| 37 | 
            +
                "full_attention",
         | 
| 38 | 
            +
                "sliding_attention",
         | 
| 39 | 
            +
                "sliding_attention",
         | 
| 40 | 
            +
                "sliding_attention",
         | 
| 41 | 
            +
                "full_attention",
         | 
| 42 | 
            +
                "sliding_attention",
         | 
| 43 | 
            +
                "sliding_attention",
         | 
| 44 | 
            +
                "sliding_attention",
         | 
| 45 | 
            +
                "full_attention",
         | 
| 46 | 
            +
                "sliding_attention",
         | 
| 47 | 
            +
                "sliding_attention",
         | 
| 48 | 
            +
                "sliding_attention",
         | 
| 49 | 
            +
                "full_attention",
         | 
| 50 | 
            +
                "sliding_attention",
         | 
| 51 | 
            +
                "sliding_attention",
         | 
| 52 | 
            +
                "sliding_attention",
         | 
| 53 | 
            +
                "full_attention",
         | 
| 54 | 
            +
                "sliding_attention",
         | 
| 55 | 
            +
                "sliding_attention",
         | 
| 56 | 
            +
                "sliding_attention",
         | 
| 57 | 
            +
                "full_attention",
         | 
| 58 | 
            +
                "sliding_attention",
         | 
| 59 | 
            +
                "sliding_attention",
         | 
| 60 | 
            +
                "sliding_attention",
         | 
| 61 | 
            +
                "full_attention",
         | 
| 62 | 
            +
                "sliding_attention",
         | 
| 63 | 
            +
                "sliding_attention",
         | 
| 64 | 
            +
                "sliding_attention",
         | 
| 65 | 
            +
                "full_attention",
         | 
| 66 | 
            +
                "sliding_attention",
         | 
| 67 | 
            +
                "sliding_attention",
         | 
| 68 | 
            +
                "sliding_attention",
         | 
| 69 | 
            +
                "full_attention",
         | 
| 70 | 
            +
                "sliding_attention",
         | 
| 71 | 
            +
                "sliding_attention",
         | 
| 72 | 
            +
                "sliding_attention",
         | 
| 73 | 
            +
                "full_attention",
         | 
| 74 | 
            +
                "sliding_attention",
         | 
| 75 | 
            +
                "sliding_attention",
         | 
| 76 | 
            +
                "sliding_attention",
         | 
| 77 | 
            +
                "full_attention"
         | 
| 78 | 
            +
              ],
         | 
| 79 | 
             
              "max_position_embeddings": 131072,
         | 
| 80 | 
             
              "model_type": "exaone4",
         | 
| 81 | 
             
              "num_attention_heads": 40,
         | 
|  | |
| 95 | 
             
              "sliding_window_pattern": "LLLG",
         | 
| 96 | 
             
              "tie_word_embeddings": false,
         | 
| 97 | 
             
              "torch_dtype": "bfloat16",
         | 
| 98 | 
            +
              "transformers_version": "4.54.0",
         | 
| 99 | 
             
              "use_cache": true,
         | 
| 100 | 
             
              "vocab_size": 102400
         | 
| 101 | 
             
            }
         | 
    	
        generation_config.json
    CHANGED
    
    | @@ -4,5 +4,5 @@ | |
| 4 | 
             
              "cache_implementation": "hybrid",
         | 
| 5 | 
             
              "eos_token_id": 361,
         | 
| 6 | 
             
              "pad_token_id": 0,
         | 
| 7 | 
            -
              "transformers_version": "4.54.0 | 
| 8 | 
             
            }
         | 
|  | |
| 4 | 
             
              "cache_implementation": "hybrid",
         | 
| 5 | 
             
              "eos_token_id": 361,
         | 
| 6 | 
             
              "pad_token_id": 0,
         | 
| 7 | 
            +
              "transformers_version": "4.54.0"
         | 
| 8 | 
             
            }
         | 

