{"id":191,"date":"2025-03-22T22:02:24","date_gmt":"2025-03-22T22:02:24","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/?p=191"},"modified":"2025-03-22T22:02:24","modified_gmt":"2025-03-22T22:02:24","slug":"davids-status-report-for-3-22","status":"publish","type":"post","link":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/2025\/03\/22\/davids-status-report-for-3-22\/","title":{"rendered":"David&#8217;s Status Report for 3\/22"},"content":{"rendered":"<p>This week I worked on the model\/server code. From last week, I was initially trying to get the downloaded model from hugging face running locally. However there were many issues, dependencies, and OS problems. After trying many things, I did some more research into hosting models. I came across a software named Ollama, which allowed for easy use of a local model. I coded some python to create a server which took in requests to run through the model and then return to the endpoint.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-192\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-content\/uploads\/sites\/367\/2025\/03\/Screenshot-2025-03-22-175401.png\" alt=\"\" width=\"1699\" height=\"406\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-content\/uploads\/sites\/367\/2025\/03\/Screenshot-2025-03-22-175401.png 1699w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-content\/uploads\/sites\/367\/2025\/03\/Screenshot-2025-03-22-175401-300x72.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-content\/uploads\/sites\/367\/2025\/03\/Screenshot-2025-03-22-175401-768x184.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-content\/uploads\/sites\/367\/2025\/03\/Screenshot-2025-03-22-175401-1024x245.png 1024w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/>As seen here, we can simply curl a request in which will then be parsed into the model and returned. I then tried to look into dockerization of this code. I was able to build a container and curl into its exposed port, yet the trouble I come across is that the Ollama code inside does not seem to be running. I think it stems from the fact that to run Ollama in python, you need two things (more like three things): Ollama package, Ollama App and related files, and an Ollama model. Currently, the Ollama model and App are on my pc somewhere, so when I initially tried to containerize the code the model and app were not included, only the Ollama package (which is useless by itself). I then tried pasting those folders into the folder before building the Docker image, and they were still not running. I have played around with mounting images, and other suggested solutions online, but they do not work. I am still researching into fixing it, but there are few resources that pertain to my exact situation as well as my OS(windows). We are currently on schedule.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I worked on the model\/server code. From last week, I was initially trying to get the downloaded model from hugging face running locally. However there were many issues, dependencies, and OS problems. After trying many things, I did some more research into hosting models. I came across a software named Ollama, which allowed &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/2025\/03\/22\/davids-status-report-for-3-22\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;David&#8217;s Status Report for 3\/22&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1041,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[3],"_links":{"self":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/posts\/191"}],"collection":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/users\/1041"}],"replies":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":1,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":193,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/posts\/191\/revisions\/193"}],"wp:attachment":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teame0\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}