krpg commited on
Commit
ffcdb80
1 Parent(s): fb8a35a

Upload template.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. template.json +55 -0
template.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "kth_test_500",
3
+ "base_model": "unsloth/Qwen2-0.5B",
4
+ "train_dataset": "dataset_anna500_test",
5
+ "test_dataset": "dataset_anna500_test",
6
+ "rank": 32,
7
+ "alpha": 32,
8
+ "epoch": 1,
9
+ "learning_rate": 5e-05,
10
+ "learning_rate_scheduler": "linear",
11
+ "template": {
12
+ "name": "Heroic Deeds",
13
+ "version": "0.0.1",
14
+ "template_description": "The template for creating a model that can create heroic deeds",
15
+ "inputs": [
16
+ {
17
+ "variable_name": "author",
18
+ "type": "str",
19
+ "description": "The cannonical author of the heroic deed text"
20
+ },
21
+ {
22
+ "variable_name": "character",
23
+ "type": "str",
24
+ "description": "The character the heroic deed text is about"
25
+ },
26
+ {
27
+ "variable_name": "emotions",
28
+ "type": "List[str]",
29
+ "description": "A list of one-word emotions explaining the general emotion the text is trying to convey"
30
+ },
31
+ {
32
+ "variable_name": "genre",
33
+ "type": "str",
34
+ "description": "The literary genre of the work"
35
+ },
36
+ {
37
+ "variable_name": "genre_description",
38
+ "type": "str",
39
+ "description": "The description of the genre, providing guidelines as to how to use it."
40
+ },
41
+ {
42
+ "variable_name": "heroic_deed",
43
+ "type": "str",
44
+ "description": "A heroic deed is a notable achievement for a given character, that has profound effects on the surrounding community and their social standing"
45
+ }
46
+ ],
47
+ "output": {
48
+ "Author": "str",
49
+ "Genre": "str",
50
+ "Title": "str",
51
+ "Text": "str"
52
+ },
53
+ "prompt": "You are a master word-smith, primed to create exciting tales from medieval europe. You will be given an author ({{author.description}}), a main character ({{character.description}}), a heroic deed ({{heroic_deed.description}}), a few emotions ({{emotions.description}}), a literary genre, as well as an explenation as to what that literary genre entails ({{genre_description}}) and you are meant to write a text based on that. \n You will ALWAYS reply in the following valid JSON: { 'Author': 'author', 'Title': 'title', 'Text': 'the generated text' }. \n Please write a text in the style of {{genre}} ({{genre_description}}), from the perspective of {{author}} regarding {{character}} about their {{heroic_deed}}. The text should be {{emotions}} and you should generate a suitable title for it as well. REMEMBER TO OUTPUT THE VALID JSON DESCRIBED ABOVE."
54
+ }
55
+ }