You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/main.cpp
-2
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,6 @@ int main()
44
44
// Generate embeddings for a model and a prompt.
45
45
std::cout << ollama::generate_embeddings("llama3:8b", "Why is the sky blue?") << std::endl;
46
46
47
-
sleep(10);
48
-
49
47
// Push a model a model library with the syntax <namespace>/<model>:<tag>. Note that you must have registered on ollama.ai and added a public key to do this.
50
48
try { if ( ollama::push_model("jmont/my_model:latest") ) std::cout << "Model was pushed" << std::endl; }catch(...) {std::cout << "Unable to push model." << std::endl; }
0 commit comments