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

FunAGI
/
LLaDA-8B-Base-gptqmodel-4bit

Text Generation
Safetensors
llada
gptqmodel
FunAGI
int4
conversational
custom_code
4-bit precision
gptq
Model card Files Files and versions
xet
Community

Instructions to use FunAGI/LLaDA-8B-Base-gptqmodel-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Local Apps
  • vLLM

    How to use FunAGI/LLaDA-8B-Base-gptqmodel-4bit with vLLM:

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

    How to use FunAGI/LLaDA-8B-Base-gptqmodel-4bit 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 "FunAGI/LLaDA-8B-Base-gptqmodel-4bit" \
        --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": "FunAGI/LLaDA-8B-Base-gptqmodel-4bit",
    		"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 "FunAGI/LLaDA-8B-Base-gptqmodel-4bit" \
            --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": "FunAGI/LLaDA-8B-Base-gptqmodel-4bit",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use FunAGI/LLaDA-8B-Base-gptqmodel-4bit with Docker Model Runner:

    docker model run hf.co/FunAGI/LLaDA-8B-Base-gptqmodel-4bit
LLaDA-8B-Base-gptqmodel-4bit
5.71 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
chentianqi's picture
chentianqi
Update README.md
54d1f7a verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    13.2 kB
    Update README.md about 1 year ago
  • config.json
    1.98 kB
    Add files using upload-large-folder tool about 1 year ago
  • configuration_llada.py
    12 kB
    Add files using upload-large-folder tool about 1 year ago
  • generation_config.json
    121 Bytes
    Add files using upload-large-folder tool about 1 year ago
  • model-00001-of-00003.safetensors
    2 GB
    xet
    Add files using upload-large-folder tool about 1 year ago
  • model-00002-of-00003.safetensors
    2 GB
    xet
    Add files using upload-large-folder tool about 1 year ago
  • model-00003-of-00003.safetensors
    1.71 GB
    xet
    Add files using upload-large-folder tool about 1 year ago
  • model.safetensors.index.json
    82.2 kB
    Add files using upload-large-folder tool about 1 year ago
  • modeling_llada.py
    60.7 kB
    Add files using upload-large-folder tool about 1 year ago
  • quant_log.csv
    7.61 kB
    Add files using upload-large-folder tool about 1 year ago
  • quantize_config.json
    432 Bytes
    Add files using upload-large-folder tool about 1 year ago
  • special_tokens_map.json
    653 Bytes
    Add files using upload-large-folder tool about 1 year ago
  • tokenizer.json
    9.75 MB
    Add files using upload-large-folder tool about 1 year ago
  • tokenizer_config.json
    51.1 kB
    Add files using upload-large-folder tool about 1 year ago