Paul Bird
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# Tiny Stories Model in Unity Sentis Format
|
| 6 |
+
This is the [Tiny Stories model](https://huggingface.co/roneneldan/TinyStories-33M) checked to run on Unity 2023
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
## How to Use
|
| 10 |
+
* Create a new scene in Unity 2023
|
| 11 |
+
* Add the RunTinyStories.cs file to the Main Camera
|
| 12 |
+
* Put `tinystories.sentis`, `vocab.json` and `merges.txt` in the Assets/StreamingAssets folder
|
| 13 |
+
* Adjust some of the variables such as the `outputText` string to set the prompt
|
| 14 |
+
* Press run
|
| 15 |
+
* The output will appear in the console window
|
| 16 |
+
|
| 17 |
+
## Example Input
|
| 18 |
+
```
|
| 19 |
+
One day an alien came down from Mars. It saw a chicken
|
| 20 |
+
```
|
| 21 |
+
## Example Output
|
| 22 |
+
```
|
| 23 |
+
One day an alien came down from Mars. It saw a chicken and said, "Hello, little chicken. What are you doing here?"
|
| 24 |
+
|
| 25 |
+
The chicken replied, "I'm looking for a place to stay. I'm very tired."
|
| 26 |
+
|
| 27 |
+
The alien said, "You can stay here. I have a nice place for you. It's very comfortable."
|
| 28 |
+
|
| 29 |
+
The chicken was so happy. She thanked the alien and said, "Thank you. I'm very comfortable here."
|
| 30 |
+
|
| 31 |
+
The alien smiled and said, "You're welcome
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Unity Sentis
|
| 35 |
+
Unity Sentis the the inference engine which runs on Unity 2023. More can be found about it [here](https://unity.com/products/sentis)
|