Update README.md
Browse files
README.md
CHANGED
|
@@ -31,7 +31,7 @@ git clone https://huggingface.co/TerenceLau/sparrow && cd ./sparrow/
|
|
| 31 |
|
| 32 |
then, you can register the `SparrowConfig` and `SparrowModel` to `AutoConfig` and `AutoModelForCausalLM`:
|
| 33 |
```python
|
| 34 |
-
from modelling_sparrow import
|
| 35 |
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
|
| 36 |
AutoConfig.register("sparrow", SparrowConfig)
|
| 37 |
AutoModelForCausalLM.register(SparrowConfig, SparrowModelForCausalLM)
|
|
|
|
| 31 |
|
| 32 |
then, you can register the `SparrowConfig` and `SparrowModel` to `AutoConfig` and `AutoModelForCausalLM`:
|
| 33 |
```python
|
| 34 |
+
from modelling_sparrow import SparrowModelForCausalLM, SparrowConfig
|
| 35 |
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
|
| 36 |
AutoConfig.register("sparrow", SparrowConfig)
|
| 37 |
AutoModelForCausalLM.register(SparrowConfig, SparrowModelForCausalLM)
|