|
|
|
|
|
by datadeft
1192 days ago
|
|
Not bad with these settings: ./main -m ./models/7B/ggml-model-q4_0.bin \
--top_p 2 --top_k 40 \
--repeat_penalty 1.176 \
--temp 0.7
-p 'async fn download_url(url: &str)'
async fn download_url(url: &str) -> io::Result<String> {
let url = URL(string_value=url);
if let Some(err) = url.verify() {} // nope, just skip the downloading part
else match err == None { // works now
true => Ok(String::from(match url.open("get")?{
|res| res.ok().expect_str(&url)?,
|err: io::Error| Err(io::ErrorKind(uint16_t::MAX as u8))),
false => Err(io::Error
|
|