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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

mofosyne
/
TinyLLama-v0-5M-F16-llamafile

Text Generation
GGUF
llamafile
English
model-conversion
Model card Files Files and versions
xet
Community

Instructions to use mofosyne/TinyLLama-v0-5M-F16-llamafile with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • llama-cpp-python

    How to use mofosyne/TinyLLama-v0-5M-F16-llamafile with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="mofosyne/TinyLLama-v0-5M-F16-llamafile",
    	filename="TinyLLama-4.6M-v0.0-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 mofosyne/TinyLLama-v0-5M-F16-llamafile 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 mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    # Run inference directly in the terminal:
    llama cli -hf mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    # Run inference directly in the terminal:
    llama cli -hf mofosyne/TinyLLama-v0-5M-F16-llamafile: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 mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    # Run inference directly in the terminal:
    ./llama-cli -hf mofosyne/TinyLLama-v0-5M-F16-llamafile: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 mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    Use Docker
    docker model run hf.co/mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
  • LM Studio
  • Jan
  • vLLM

    How to use mofosyne/TinyLLama-v0-5M-F16-llamafile with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "mofosyne/TinyLLama-v0-5M-F16-llamafile"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mofosyne/TinyLLama-v0-5M-F16-llamafile",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
  • Ollama

    How to use mofosyne/TinyLLama-v0-5M-F16-llamafile with Ollama:

    ollama run hf.co/mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
  • Unsloth Studio

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

    How to use mofosyne/TinyLLama-v0-5M-F16-llamafile with Docker Model Runner:

    docker model run hf.co/mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
  • Lemonade

    How to use mofosyne/TinyLLama-v0-5M-F16-llamafile with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull mofosyne/TinyLLama-v0-5M-F16-llamafile:F16
    Run and chat with the model
    lemonade run user.TinyLLama-v0-5M-F16-llamafile-F16
    List all available models
    lemonade list
TinyLLama-v0-5M-F16-llamafile
31.7 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 34 commits
mofosyne's picture
mofosyne
add example output for easier documentation for those trying to replicate
ecb359f about 2 years ago
  • .args
    32 Bytes
    sync llama.cpp about 2 years ago
  • .gitattributes
    1.61 kB
    tiny llama llamafile generated and documented over 2 years ago
  • .gitignore
    5 Bytes
    tiny llama llamafile generated and documented over 2 years ago
  • .gitmodules
    287 Bytes
    test new proposed outfile naming convention changes to llama.cpp conversion script about 2 years ago
  • README.md
    6.18 kB
    add example output for easier documentation for those trying to replicate about 2 years ago
  • TinyLLama-4.6M-v0.0-F16.dump.md
    25.9 kB
    sync llama.cpp about 2 years ago
  • TinyLLama-4.6M-v0.0-F16.gguf
    10 MB
    xet
    sync llama.cpp about 2 years ago
  • TinyLLama-4.6M-v0.0-F16.llamafile
    21.5 MB
    xet
    sync llama.cpp about 2 years ago
  • convert_hf_to_gguf.output.txt
    45.4 kB
    add example output for easier documentation for those trying to replicate about 2 years ago
  • llamafile-creation.sh
    2.66 kB
    add example output for easier documentation for those trying to replicate about 2 years ago
  • llamafile_output_example.output.txt
    58.3 kB
    add example output for easier documentation for those trying to replicate about 2 years ago
  • maykeye_tinyllama-metadata.json
    1.18 kB
    detailed licence kv metadata was missing about 2 years ago