Skip to content

Commit e31f590

Browse files
committed
minor update; upload smolvlm
1 parent 5e1e800 commit e31f590

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

scripts/models.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@
162162
}
163163
}
164164
},
165+
"smolvlm2": {
166+
"brief": "SmolVLM2-2.2B is a lightweight multimodal model designed to analyze video content.",
167+
"default": "2.2b",
168+
"license": "Apache License Version 2.0",
169+
"variants": {
170+
"2.2b": {
171+
"default": "q8",
172+
"quantized": {
173+
"q8": {
174+
"size": 2516121904,
175+
"url": "chatllm_quantized_smolvlm2/smolvlm2-2.2b-it.bin"
176+
}
177+
}
178+
}
179+
}
180+
},
165181
"zhinao": {
166182
"brief": "360Zhinao from Qihoo360.",
167183
"default": "7b-4k",

src/chat.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ namespace chatllm
101101
{
102102
auto tag = inner.substr(0, pos);
103103
auto path = inner.substr(pos + 1);
104+
// remove quotes
105+
if (path.size() >= 2)
106+
{
107+
if ((path[0] == '"') && (path.back() == '"'))
108+
{
109+
path = path.substr(1, path.size() - 2);
110+
}
111+
}
112+
113+
if (path.size() == 0) continue;
114+
104115
if (tag == "image")
105116
{
106117
push_back(path, ContentPiece::Type::Image);

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ static void play_audio(const std::vector<int16_t> &data, const int sample_rate,
766766
file.close();
767767

768768
char cmd[2048];
769-
sprintf(cmd, "ffplay -autoexit -f s16le -ch_layout %s -sample_rate %d \"%s\"", channels == 1 ? "mono" : "stereo", sample_rate, fn.c_str());
769+
sprintf(cmd, "ffplay -loglevel error -autoexit -f s16le -ch_layout %s -sample_rate %d \"%s\"", channels == 1 ? "mono" : "stereo", sample_rate, fn.c_str());
770770
int r = system(cmd);
771771
if (export_fn.size() < 1)
772772
std::remove(fn.c_str());

0 commit comments

Comments
 (0)