Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

LMLK
/
AMD-Llama-135m-code-GGUF

Text Generation
Transformers
GGUF
Model card Files Files and versions
xet
Community

Instructions to use LMLK/AMD-Llama-135m-code-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use LMLK/AMD-Llama-135m-code-GGUF with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="LMLK/AMD-Llama-135m-code-GGUF")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("LMLK/AMD-Llama-135m-code-GGUF", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use LMLK/AMD-Llama-135m-code-GGUF 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 LMLK/AMD-Llama-135m-code-GGUF:F32
    # Run inference directly in the terminal:
    llama cli -hf LMLK/AMD-Llama-135m-code-GGUF:F32
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf LMLK/AMD-Llama-135m-code-GGUF:F32
    # Run inference directly in the terminal:
    llama cli -hf LMLK/AMD-Llama-135m-code-GGUF:F32
    Build from source code
    git clone https://github.com/ggml-org/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-app
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama serve -hf LMLK/AMD-Llama-135m-code-GGUF:F32
    # Run inference directly in the terminal:
    ./build/bin/llama cli -hf LMLK/AMD-Llama-135m-code-GGUF:F32
    Use Docker
    docker model run hf.co/LMLK/AMD-Llama-135m-code-GGUF:F32
  • Llama new
  • LM Studio
  • Jan
  • vLLM

    How to use LMLK/AMD-Llama-135m-code-GGUF with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "LMLK/AMD-Llama-135m-code-GGUF"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "LMLK/AMD-Llama-135m-code-GGUF",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/LMLK/AMD-Llama-135m-code-GGUF:F32
  • SGLang

    How to use LMLK/AMD-Llama-135m-code-GGUF 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 "LMLK/AMD-Llama-135m-code-GGUF" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "LMLK/AMD-Llama-135m-code-GGUF",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    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 "LMLK/AMD-Llama-135m-code-GGUF" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "LMLK/AMD-Llama-135m-code-GGUF",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use LMLK/AMD-Llama-135m-code-GGUF with Ollama:

    ollama run hf.co/LMLK/AMD-Llama-135m-code-GGUF:F32
  • Unsloth Desktop
  • Docker Model Runner

    How to use LMLK/AMD-Llama-135m-code-GGUF with Docker Model Runner:

    docker model run hf.co/LMLK/AMD-Llama-135m-code-GGUF:F32
  • Lemonade

    How to use LMLK/AMD-Llama-135m-code-GGUF with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull LMLK/AMD-Llama-135m-code-GGUF:F32
    Run and chat with the model
    lemonade run user.AMD-Llama-135m-code-GGUF-F32
    List all available models
    lemonade list
  • Atomic Chat
AMD-Llama-135m-code-GGUF
412 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
LMLK's picture
LMLK
Update README.md
ce6a691 verified about 2 years ago
  • .gitattributes
    1.65 kB
    Upload 2 files about 2 years ago
  • AMD-Llama-135m-code.F32.gguf
    269 MB
    xet
    Upload 2 files about 2 years ago
  • AMD-Llama-135m-code.Q8_0.gguf
    143 MB
    xet
    Upload 2 files about 2 years ago
  • README.md
    11.2 kB
    Update README.md about 2 years ago