Views
No views yet
llama.cppllama.cpp are nearly identical to the previous model. The main change is the file name you'll use in the command.llama.cpp: Follow the same steps as before to clone the llama.cpp repository and build the project with make.NISKA_gemma3_4b_q8.gguf file into the directory and run it using the main executable. The command will be:./main -m ./NISKA_gemma3_4b_q8.gguf -n 512 -p "Draft a clause for a confidentiality agreement that covers trade secrets." --color -i-m ./NISKA_gemma3_4b_q8.gguf: Specifies the path to your model file.-n 512: Sets the maximum number of tokens to generate.-p "...": Provides the initial prompt.--color: Displays the output in color.-i: Runs in interactive mode.Modelfile correctly references the new file name and the base model's architecture (Gemma).# symbol.Modelfile for NISKA_gemma3_4b_q8:# This Modelfile defines the NISKA Legal Assistant, a specialized LLM for legal text generation.
# It is based on the Gemma architecture and fine-tuned for a legal corpus.
FROM ./NISKA_gemma3_4b_q8.gguf
# Optional: Set default parameters for a more controlled output.
# Temperature controls randomness. Lower values are more deterministic.
PARAMETER temperature 0.7
# Top_k limits the number of tokens to consider when sampling.
PARAMETER top_k 40
# Top_p is the cumulative probability for sampling.
PARAMETER top_p 0.9
# Define the system prompt, which gives the model its "persona".
SYSTEM """
You are NISKA, a specialized legal assistant based on the Gemma architecture.
Your purpose is to provide information and draft text based on legal concepts.
You must not provide professional legal advice. All information is for informational and educational purposes only.
"""Modelfile (with no extension) in the same directory as your NISKA_gemma3_4b_q8.gguf file.ollama create command: Open your terminal, navigate to the directory, and run the following command to create the model in Ollama.ollama create niska-gemma-legal -f Modelfileniska-gemma-legal: This is the name you are assigning to your model within Ollama.-f Modelfile: This tells Ollama to use the instructions from the Modelfile you created.ollama run niska-gemma-legalollama run hf.co/steamed-potatop/niska_gemma3_4b_q8