update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,7 @@ from outlines import models
|
|
27 |
from gigax.step import NPCStepper
|
28 |
|
29 |
# Download model from the Hub
|
30 |
-
model_name = "Gigax/NPC-LLM-
|
31 |
llm = AutoModelForCausalLM.from_pretrained(model_name)
|
32 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
33 |
|
@@ -53,7 +53,9 @@ from gigax.scene import (
|
|
53 |
ParameterType,
|
54 |
)
|
55 |
# Use sample data
|
|
|
56 |
current_location = Location(name="Old Town", description="A quiet and peaceful town.")
|
|
|
57 |
NPCs = [
|
58 |
Character(
|
59 |
name="John the Brave",
|
@@ -133,8 +135,8 @@ Aldren:
|
|
133 |
|
134 |
```bibtex
|
135 |
@misc{NPC-LLM-3_8B,
|
136 |
-
url={[https://huggingface.co/Gigax/NPC-LLM-
|
137 |
title={NPC-LLM-3_8B},
|
138 |
author={Gigax team}
|
139 |
}
|
140 |
-
```
|
|
|
27 |
from gigax.step import NPCStepper
|
28 |
|
29 |
# Download model from the Hub
|
30 |
+
model_name = "Gigax/NPC-LLM-3_8B"
|
31 |
llm = AutoModelForCausalLM.from_pretrained(model_name)
|
32 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
33 |
|
|
|
53 |
ParameterType,
|
54 |
)
|
55 |
# Use sample data
|
56 |
+
context = "Medieval world"
|
57 |
current_location = Location(name="Old Town", description="A quiet and peaceful town.")
|
58 |
+
locations = [current_location] # you can add more locations to the scene
|
59 |
NPCs = [
|
60 |
Character(
|
61 |
name="John the Brave",
|
|
|
135 |
|
136 |
```bibtex
|
137 |
@misc{NPC-LLM-3_8B,
|
138 |
+
url={[https://huggingface.co/Gigax/NPC-LLM-3_8B](https://huggingface.co/Gigax/NPC-LLM-3_8B)},
|
139 |
title={NPC-LLM-3_8B},
|
140 |
author={Gigax team}
|
141 |
}
|
142 |
+
```
|