Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Captainsl
/
SinhalaLLM

Transformers
Safetensors
GGUF
Sinhala
experimental
low-resource-languages
research
proof-of-concept
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use Captainsl/SinhalaLLM with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("Captainsl/SinhalaLLM", dtype="auto")
  • llama-cpp-python

    How to use Captainsl/SinhalaLLM with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="Captainsl/SinhalaLLM",
    	filename="SinhalaLLM.f16.gguf",
    )
    
    output = llm(
    	"Once upon a time,",
    	max_tokens=512,
    	echo=True
    )
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use Captainsl/SinhalaLLM with llama.cpp:

    Install (macOS, Linux)
    curl -LsSf https://llama.app/install.sh | sh
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf Captainsl/SinhalaLLM:F16
    # Run inference directly in the terminal:
    llama cli -hf Captainsl/SinhalaLLM:F16
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf Captainsl/SinhalaLLM:F16
    # Run inference directly in the terminal:
    llama cli -hf Captainsl/SinhalaLLM:F16
    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 Captainsl/SinhalaLLM:F16
    # Run inference directly in the terminal:
    ./llama-cli -hf Captainsl/SinhalaLLM:F16
    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 Captainsl/SinhalaLLM:F16
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf Captainsl/SinhalaLLM:F16
    Use Docker
    docker model run hf.co/Captainsl/SinhalaLLM:F16
  • LM Studio
  • Jan
  • Ollama

    How to use Captainsl/SinhalaLLM with Ollama:

    ollama run hf.co/Captainsl/SinhalaLLM:F16
  • Unsloth Studio

    How to use Captainsl/SinhalaLLM 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 Captainsl/SinhalaLLM 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 Captainsl/SinhalaLLM to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for Captainsl/SinhalaLLM to start chatting
  • Atomic Chat new
  • Docker Model Runner

    How to use Captainsl/SinhalaLLM with Docker Model Runner:

    docker model run hf.co/Captainsl/SinhalaLLM:F16
  • Lemonade

    How to use Captainsl/SinhalaLLM with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull Captainsl/SinhalaLLM:F16
    Run and chat with the model
    lemonade run user.SinhalaLLM-F16
    List all available models
    lemonade list
SinhalaLLM
7.61 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
Captainsl's picture
Captainsl
Update README.md
09b82a2 verified 10 months ago
  • .gitattributes
    1.63 kB
    Upload folder using huggingface_hub 10 months ago
  • README.md
    4.81 kB
    Update README.md 10 months ago
  • SinhalaLLM.f16.gguf
    3.8 GB
    xet
    Upload folder using huggingface_hub 10 months ago
  • config.json
    668 Bytes
    Upload folder using huggingface_hub 10 months ago
  • generation_config.json
    111 Bytes
    Upload folder using huggingface_hub 10 months ago
  • model.safetensors
    3.79 GB
    xet
    Upload folder using huggingface_hub 10 months ago
  • special_tokens_map.json
    439 Bytes
    Upload folder using huggingface_hub 10 months ago
  • tokenizer.json
    19.3 MB
    xet
    Upload folder using huggingface_hub 10 months ago
  • tokenizer_config.json
    2.07 MB
    Upload folder using huggingface_hub 10 months ago