Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

sallani
/
PrivaMesh

Token Classification
Transformers
GGUF
French
English
mistral
privacy
anonymization
pii
legal
compliance
gdpr
rgpd
ner
on-premise
sovereign-ai
slm
privamesh
imatrix
conversational
Model card Files Files and versions
xet
Community

Instructions to use sallani/PrivaMesh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use sallani/PrivaMesh with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("token-classification", model="sallani/PrivaMesh")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForTokenClassification
    
    tokenizer = AutoTokenizer.from_pretrained("sallani/PrivaMesh")
    model = AutoModelForTokenClassification.from_pretrained("sallani/PrivaMesh")
  • llama-cpp-python

    How to use sallani/PrivaMesh with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="sallani/PrivaMesh",
    	filename="privamesh-legal-Q4_K_M.gguf",
    )
    
    llm.create_chat_completion(
    	messages = "\"My name is Sarah Jessica Parker but you can call me Jessica\""
    )
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • llama.cpp

    How to use sallani/PrivaMesh with llama.cpp:

    Install from brew
    brew install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf sallani/PrivaMesh:Q4_K_M
    # Run inference directly in the terminal:
    llama-cli -hf sallani/PrivaMesh:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf sallani/PrivaMesh:Q4_K_M
    # Run inference directly in the terminal:
    llama-cli -hf sallani/PrivaMesh:Q4_K_M
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf sallani/PrivaMesh:Q4_K_M
    # Run inference directly in the terminal:
    ./llama-cli -hf sallani/PrivaMesh:Q4_K_M
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf sallani/PrivaMesh:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf sallani/PrivaMesh:Q4_K_M
    Use Docker
    docker model run hf.co/sallani/PrivaMesh:Q4_K_M
  • LM Studio
  • Jan
  • Ollama

    How to use sallani/PrivaMesh with Ollama:

    ollama run hf.co/sallani/PrivaMesh:Q4_K_M
  • Unsloth Studio new

    How to use sallani/PrivaMesh with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for sallani/PrivaMesh to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for sallani/PrivaMesh to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for sallani/PrivaMesh to start chatting
  • Pi new

    How to use sallani/PrivaMesh with Pi:

    Start the llama.cpp server
    # Install llama.cpp:
    brew install llama.cpp
    # Start a local OpenAI-compatible server:
    llama-server -hf sallani/PrivaMesh:Q4_K_M
    Configure the model in Pi
    # Install Pi:
    npm install -g @mariozechner/pi-coding-agent
    # Add to ~/.pi/agent/models.json:
    {
      "providers": {
        "llama-cpp": {
          "baseUrl": "http://localhost:8080/v1",
          "api": "openai-completions",
          "apiKey": "none",
          "models": [
            {
              "id": "PrivaMesh"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • Docker Model Runner

    How to use sallani/PrivaMesh with Docker Model Runner:

    docker model run hf.co/sallani/PrivaMesh:Q4_K_M
  • Lemonade

    How to use sallani/PrivaMesh with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull sallani/PrivaMesh:Q4_K_M
    Run and chat with the model
    lemonade run user.PrivaMesh-Q4_K_M
    List all available models
    lemonade list
PrivaMesh
6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
sallani's picture
sallani
Update README.md
3e85a3e verified 10 days ago
  • .gitattributes
    2.01 kB
    Upload privamesh-legal-Q4_K_M.gguf 12 days ago
  • Modelfile
    9.33 kB
    Upload Modelfile 12 days ago
  • README.md
    29.4 kB
    Update README.md 10 days ago
  • benchmark_bertscore.png
    153 kB
    xet
    Upload 6 files 12 days ago
  • benchmark_f1_comparison.png
    175 kB
    xet
    Upload 6 files 12 days ago
  • benchmark_loss_curve.png
    200 kB
    xet
    Upload 6 files 12 days ago
  • benchmark_per_category.png
    251 kB
    xet
    Upload 6 files 12 days ago
  • benchmark_precision_recall.png
    234 kB
    xet
    Upload 6 files 12 days ago
  • benchmark_throughput.png
    187 kB
    xet
    Upload 6 files 12 days ago
  • config.json
    6.49 kB
    Upload 3 files 12 days ago
  • priva.png
    1.37 MB
    xet
    Upload 2 files 12 days ago
  • privamesh-legal-Q4_K_M.gguf
    6 GB
    xet
    Upload privamesh-legal-Q4_K_M.gguf 12 days ago
  • train.py
    34.4 kB
    Upload 3 files 12 days ago