ByteForge commited on
Commit
9905fdd
·
verified ·
1 Parent(s): f63341f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -1
README.md CHANGED
@@ -43,9 +43,50 @@ model_path = snapshot_download(model_id)
43
  model = ctranslate2.Generator(model_path)
44
  tokenizer = transformers.AutoTokenizer.from_pretrained(model_id)
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  messages = [
47
  {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
48
- {"role": "user", "content": "Who are you?"},
49
  ]
50
 
51
  input_ids = tokenizer.apply_chat_template(
 
43
  model = ctranslate2.Generator(model_path)
44
  tokenizer = transformers.AutoTokenizer.from_pretrained(model_id)
45
 
46
+ prompt="""
47
+ CREATE TABLE stadium (
48
+ stadium_id number,
49
+ location text,
50
+ name text,
51
+ capacity number,
52
+ highest number,
53
+ lowest number,
54
+ average number
55
+ )
56
+
57
+ CREATE TABLE singer (
58
+ singer_id number,
59
+ name text,
60
+ country text,
61
+ song_name text,
62
+ song_release_year text,
63
+ age number,
64
+ is_male others
65
+ )
66
+
67
+ CREATE TABLE concert (
68
+ concert_id number,
69
+ concert_name text,
70
+ theme text,
71
+ stadium_id text,
72
+ year text
73
+ )
74
+
75
+ CREATE TABLE singer_in_concert (
76
+ concert_id number,
77
+ singer_id text
78
+ )
79
+
80
+ -- Using valid SQLite, answer the following questions for the tables provided above.
81
+
82
+ -- What is the maximum, the average, and the minimum capacity of stadiums ? (Generate 1 Sql query. No explaination needed)
83
+
84
+ answer:
85
+ """
86
+
87
  messages = [
88
  {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
89
+ {"role": "user", "content": prompt},
90
  ]
91
 
92
  input_ids = tokenizer.apply_chat_template(