Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
+
tags:
|
| 5 |
+
- text-generation
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Ethan MiniMind (28M)
|
| 10 |
+
|
| 11 |
+
This is a small experimental text-only language model (28M parameters).
|
| 12 |
+
It is currently in training, so results may vary.
|
| 13 |
+
|
| 14 |
+
## Usage
|
| 15 |
+
|
| 16 |
+
```python
|
| 17 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
| 18 |
+
|
| 19 |
+
tokenizer = AutoTokenizer.from_pretrained("daemon1st/Ethan-minimind")
|
| 20 |
+
model = AutoModelForCausalLM.from_pretrained("daemon1st/Ethan-minimind")
|
| 21 |
+
|
| 22 |
+
gen = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
| 23 |
+
gen("Hello world!", max_new_tokens=50)
|