Package: ollamac
ollama Command Line InterfaceInstallationWindowsInstall Ubuntu on WSL viawsl ---installStart UbuntuInstall CUDA (https://docs.nvidia.com/cuda/wsl-user-guide/index.html)Install Ollama (https://ollama.ai/download/linux)Start OllamaAfter the installation start Ollama byollama serveIf you get an error likeError: listen tcp 127.0.0.1:11434: bind: address already in useYou can define the address to use for Ollama by setting the environment variableOLLAMA_HOSTexport OLLAMA_HOST=localhost:8888Run the LLM serving should give you the following outputwsl:~$ ollama serve
2023/10/25 19:38:15 images.go:822: total blobs: 0
2023/10/25 19:38:15 images.go:829: total unused blobs removed: 0
2023/10/25 19:38:15 routes.go:662: Listening on 127.0.0.1:8888 (version 0.1.5)Pull a modelThis step is optional. On the first usage, the model will get pulled anyway.
Execute the following command to pull the llama2 model.ollama pull llama2Make sure you are using the same OLLAMA_HOST where your server is started.On the server you should see output like:[GIN] 2023/10/25 - 19:45:38 | 200 |        35.1µs |       127.0.0.1 | HEAD     "/"
[GIN] 2023/10/25 - 19:45:38 | 200 |     385.599µs |       127.0.0.1 | GET      "/api/tags"
2023/10/25 19:45:41 download.go:126: downloading 22f7f8ef5f4c in 64 59 MB part(s)
...Install ollamacExecutepip install ollamacUsageusage:ollamac.py[-h][--modelMODEL][--hostHOST][--portPORT][--sync]prompt

ollamacommandlineutility.

positionalarguments:promptRequiredprompttobesendtotheollamamodel.

options:-h,--helpshowthishelpmessageandexit--modelMODELThenameoftheollamamodeltouse.Defaultis"llama2".--hostHOSTThehostnamewhereollamaserveisrunning.Defaultis"localhost".--portPORTTheportwhereollamaserveisrunning.Defaultis"8888".--syncThisswitchexecutesthequerysynchronous.ExamplesBlogpost(.venv)PSF:\git\playground>python-mollamac"Write a blogpost about the new iphone 15 in 400 words."Title:TheNewiPhone15:AGame-ChangerinSmartphoneTechnology

ApplehasjustreleaseditslatestandgreatestiPhone,theiPhone15,andit's a real showstopper. Packed with cutting-edge technology and design innovations, this phone is sure to revolutionize the way we use our smartphones. Here are some of the most exciting features of the new iPhone 15:Super Retina XDR Display: The iPhone 15 boasts a stunning Super Retina XDR display, which offers an unparalleled viewing experience. With a 120Hz refresh rate and a peak brightness of 1000 nits, this display is perfect for watching videos, playing games, and browsing the web.A15 Bionic Chip: The iPhone 15 is powered by Apple'slatestA15Bionicchip,whichprovideslightning-fastperformanceandefficiency.Thischipoffersa20%boostinprocessingspeedanda40%improvementinenergyefficiencycomparedtothepreviousgeneration.Triple-LensCamera:TheiPhone15featuresatriple-lenscamerasystem,includingawide-anglelens,atelephotolens,andamacrolens.Thisallowsuserstocapturestunningphotosandvideoswithunparalleleddetailanddepth.Thecameraalsosupportsadvancedfeatureslikenightmode,portraitmode,andmore.

LongerBatteryLife:Withupto12hoursofinternetuseonasinglecharge,theiPhone15offerssignificantlylongerbatterylifethanitspredecessors.Thismeansuserscanenjoytheirphonealldaywithoutneedingtoworryaboutrunningoutofjuice.

WirelessCharging:TheiPhone15supportswirelesscharging,allowinguserstosimplyplacetheirphoneonachargingpadtorecharge.Thisfeatureisespeciallyconvenientforthosewhoarealwaysonthegoanddon't want to be tethered to a cord.Enhanced Security: With advanced biometric authentication features like Face ID and Touch ID, the iPhone 15 offers an unparalleled level of security. Users can securely unlock their phone with just a glance or a fingerprint, keeping their personal information safe from prying eyes.Overall, the new iPhone 15 is a game-changer in smartphone technology. With its stunning display, powerful processor, advanced camera system, longer battery life, wireless charging capabilities, and enhanced security features, this phone is sure to revolutionize the way we use our smartphones. Whether you'reatechenthusiastorjustlookingforanupgrade,theiPhone15isdefinitelyworthcheckingout.