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

exnivo
/
LoafLM-10M

Text Generation
Transformers
Safetensors
GGUF
English
loaflm
causal-lm
tiny-llm
small-language-model
from-scratch
meme
cat
weird
experimental
english
ollama
lm-studio
conversational
custom_code
Model card Files Files and versions
xet
Community
3

Instructions to use exnivo/LoafLM-10M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use exnivo/LoafLM-10M with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="exnivo/LoafLM-10M", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("exnivo/LoafLM-10M", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use exnivo/LoafLM-10M 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 exnivo/LoafLM-10M:F32
    # Run inference directly in the terminal:
    llama cli -hf exnivo/LoafLM-10M:F32
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf exnivo/LoafLM-10M:F32
    # Run inference directly in the terminal:
    llama cli -hf exnivo/LoafLM-10M:F32
    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 exnivo/LoafLM-10M:F32
    # Run inference directly in the terminal:
    ./llama-cli -hf exnivo/LoafLM-10M:F32
    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 exnivo/LoafLM-10M:F32
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf exnivo/LoafLM-10M:F32
    Use Docker
    docker model run hf.co/exnivo/LoafLM-10M:F32
  • LM Studio
  • Jan
  • vLLM

    How to use exnivo/LoafLM-10M with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "exnivo/LoafLM-10M"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "exnivo/LoafLM-10M",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/exnivo/LoafLM-10M:F32
  • SGLang

    How to use exnivo/LoafLM-10M with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "exnivo/LoafLM-10M" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "exnivo/LoafLM-10M",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "exnivo/LoafLM-10M" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "exnivo/LoafLM-10M",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Ollama

    How to use exnivo/LoafLM-10M with Ollama:

    ollama run hf.co/exnivo/LoafLM-10M:F32
  • Unsloth Desktop
  • Docker Model Runner

    How to use exnivo/LoafLM-10M with Docker Model Runner:

    docker model run hf.co/exnivo/LoafLM-10M:F32
  • Lemonade

    How to use exnivo/LoafLM-10M with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull exnivo/LoafLM-10M:F32
    Run and chat with the model
    lemonade run user.LoafLM-10M-F32
    List all available models
    lemonade list
  • Atomic Chat
LoafLM-10M
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
exnivo's picture
exnivo
Document GGUF and add Ollama support
658266f verified 29 days ago
  • assets
    Upload assets/LoafLM-Model-banner.png about 2 months ago
  • .gitattributes
    1.64 kB
    Add full-precision GGUF for Ollama and LM Studio 29 days ago
  • LoafLM-10M-F32.gguf
    41.3 MB
    xet
    Add full-precision GGUF for Ollama and LM Studio 29 days ago
  • Modelfile
    307 Bytes
    Document GGUF and add Ollama support 29 days ago
  • README.md
    8.06 kB
    Document GGUF and add Ollama support 29 days ago
  • chat_template.jinja
    196 Bytes
    Add Transformers and lm-eval compatibility 29 days ago
  • config.json
    673 Bytes
    Add Transformers and lm-eval compatibility 29 days ago
  • configuration_loaflm.py
    3.79 kB
    Add Transformers and lm-eval compatibility 29 days ago
  • conversion_report.json
    341 Bytes
    Add Transformers and lm-eval compatibility 29 days ago
  • generation_config.json
    206 Bytes
    Add Transformers and lm-eval compatibility 29 days ago
  • gguf_compatibility_report.json
    677 Bytes
    Document GGUF and add Ollama support 29 days ago
  • model.safetensors
    41.2 MB
    xet
    Add Transformers and lm-eval compatibility 29 days ago
  • modeling_loaflm.py
    11.2 kB
    Add Transformers and lm-eval compatibility 29 days ago
  • tokenizer.json
    273 kB
    Upload 3 files about 2 months ago
  • tokenizer_config.json
    207 Bytes
    Add Transformers and lm-eval compatibility 29 days ago