Files changed (1) hide show
  1. README.md +14 -3
README.md CHANGED
@@ -121,13 +121,24 @@ Once you enter the container, you can start a REST server for inference.
121
  Use CURL to query the server directly, note that the newline token `\n` is represented by `<n>` in the vocabulary, so we need to replace the newline token with `<n>` in both the prompt and the generated tokens.
122
 
123
  ```shell
124
- curl 'http://localhost:6000/api' -X 'PUT' -H 'Content-Type: application/json; charset=UTF-8' -d '{"prompts":["X:1<n>L:1/8<n>Q:1/8=200<n>M:4/4<n>K:Gmin<n>|:\"Gm\" BGdB"], "tokens_to_generate":4096}'
125
  ```
126
  Output:
127
  ```shell
128
- X:1<n>L:1/8<n>Q:1/8=200<n>M:4/4<n>K:Gmin<n>|:\"Gm\" BGdB fdBG |\"F\" AFcF dFcF |\"Gm\" BGdG gFBF |\"F\" AFAG AF F2 |\"Gm\" BGBd fffd |\"F\" cdcB cdeg | <n>\"Gm\" fdcB\"Eb\" AFcA |1 BGFG\"F\" AFGc :|2 BGFG\"F\" AF F2 ||<eos>
 
 
 
 
 
 
 
 
 
 
129
  ```
130
 
131
  Once you encode the generated tokens into audio, you will hear the following music.
132
 
133
- <audio controls src="https://cdn-uploads.huggingface.co/production/uploads/640701cb4dc5f2846c91d4eb/jkL4KOVkcx3qzXwhwZRbp.mpga"></audio>
 
 
121
  Use CURL to query the server directly, note that the newline token `\n` is represented by `<n>` in the vocabulary, so we need to replace the newline token with `<n>` in both the prompt and the generated tokens.
122
 
123
  ```shell
124
+ curl 'http://localhost:6000/api' -X 'PUT' -H 'Content-Type: application/json; charset=UTF-8' -d '{"prompts":["X:1<n>L:1/8<n>Q:1/8=250<n>M:3/4<n>K:A<n>EF |\"A\""], "tokens_to_generate":4096}'
125
  ```
126
  Output:
127
  ```shell
128
+ X:1
129
+ L:1/8
130
+ Q:1/8=250
131
+ M:3/4
132
+ K:A
133
+ EF |"A" A3 AGF | E3 F A2 | Aa a2 gf |"E" ef ef ed |"A" c2 A2 A2 |"A" E3 FEF |"E" G2 Ea gf |
134
+ "E" e4 ef | ga g2 f2 | ec c2 e2 |"D" a2 gf ed |"A" c2 A2 A2 |"A" E4 EF |"A" A3 AGF |
135
+ "E" E3 F A2 =G2 |"D" FA de fa |"D" g2 f2 g2 |"A" a2 e2 e2 |"Bm" f2 d2 d2 |"E" ef ga b2- |
136
+ b2 g2 g2 | a4 a2 |"D" a2 ba gf |"A" e2 c2 c2 |"D" f4 f2 |"A" e4 a2 |"D" a2 ba gf |"E" e2 fe d=c |
137
+ "E" B2 e2 e2 |"E" E4 EF |"A" A3 AGF | E3 F A2 | Aa a2 A2 |"F#m" =G2 F2 EF |"A" A4 A2 |"E" E3 FEF |
138
+ "A" C3 D E2 |"E" B2 E2 E2 |"A" A4 ||
139
  ```
140
 
141
  Once you encode the generated tokens into audio, you will hear the following music.
142
 
143
+
144
+ <audio controls src="https://cdn-uploads.huggingface.co/production/uploads/640701cb4dc5f2846c91d4eb/Zv-IrolrVQAEIEYSX9iBz.mpga"></audio>