--- license: other language: - en base_model: - meta-llama/Llama-3.1-8B new_version: shiv1119/ollama-model-shiv pipeline_tag: text-generation tags: - ollama - local-llm - docker - offline - shiv --- # ๐Ÿฆ™ Shiv's Custom Local LLM (Ollama Ready) Welcome to **`ollama-model-shiv`**, a custom-built local language model designed to run **completely offline** using [Ollama](https://ollama.com/). This repo packages everything โ€” from `Modelfile` to model blobs โ€” ready for Docker-based deployment and local inference. --- ## Link to model - https://huggingface.co/shiv1119/ollama-model-shiv ## ๐Ÿ“ Directory Structure OllamaModelBuild/ โ”œโ”€โ”€ model_test.py # Sample Python script to interact with the model โ”œโ”€โ”€ .gitattributes # Git LFS or text handling config โ”œโ”€โ”€ ollama_clean/ โ”‚ โ”œโ”€โ”€ docker-compose.yml # Docker config to run Ollama with this model โ”‚ โ”œโ”€โ”€ Modelfile # Ollama build instructions โ”‚ โ””โ”€โ”€ models/ # Model weights & metadata โ”‚ โ”œโ”€โ”€ blobs/ # Binary blobs of the model โ”‚ โ””โ”€โ”€ manifests/ # Manifest describing model structure --- ## ๐Ÿš€ Features - โœ… 100% Offline โ€” No internet or API key needed - ๐Ÿ‹ Docker-ready with `docker-compose.yml` - โšก Works with [Ollama CLI](https://ollama.com) - ๐Ÿ” Full model reproducibility via blobs and manifests - ๐Ÿง  Based on `LLaMA2` / open-weight LLM architecture --- ## ๐Ÿ› ๏ธ Getting Started ### ๐Ÿ”ง 1. Install Prerequisites - [Install Docker](https://docs.docker.com/get-docker/) - (Optional) [Install Ollama CLI](https://ollama.com/download) โ€” used during build ### ๐Ÿ‹ 2. Run the Model Using Docker In the root of the project: ```bash cd ollama_clean docker-compose up --build ``` This builds and runs the model container locally with your custom blobs and Modelfile. ๐Ÿงช Test the Model (Optional) ```bash docker-compose exec ollama ollama run tinyllama "Hello" ``` Use the included Python script to test interaction: python model_test.py Customize it to query your local Ollama model running at http://localhost:11434. ๐Ÿงฐ Model Components Modelfile: Blueprint for Ollama to build the model blobs/: Raw model weights manifests/: Metadata describing model format/version docker-compose.yml: Encapsulates build/run config ๐Ÿง  About Ollama Ollama makes it simple to run LLMs locally on your own machine โ€” private, fast, and API-free. ๐Ÿ“ฆ Repo Purpose This repository was created to: Host a working local LLM solution Enable offline inference Serve as a template for packaging custom models with Ollama ๐Ÿ“œ License This repo is for educational/research purposes only. Please ensure you comply with the license of any base models used (e.g., LLaMA2, Mistral, etc.). ๐Ÿ™Œ Credits Crafted with โค๏ธ by Shiv Nandan Verma