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

ISTA-DASLab
/
Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16

Text Generation
Transformers
Safetensors
llama
aqlm
facebook
meta
llama-3
conversational
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16")
    model = AutoModelForMultimodalLM.from_pretrained("ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16
  • SGLang

    How to use ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16 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 "ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16" \
        --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": "ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16",
    		"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 "ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16" \
            --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": "ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16 with Docker Model Runner:

    docker model run hf.co/ISTA-DASLab/Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16
Meta-Llama-3.1-70B-AQLM-PV-2Bit-1x16
21.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
galqiwi's picture
galqiwi
Update config.json
8d819ee verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • LICENSE
    7.63 kB
    Upload folder using huggingface_hub over 1 year ago
  • config.json
    9.38 kB
    Update config.json over 1 year ago
  • generation_config.json
    185 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • model-00001-of-00005.safetensors
    5 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • model-00002-of-00005.safetensors
    4.96 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • model-00003-of-00005.safetensors
    4.99 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • model-00004-of-00005.safetensors
    4.87 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • model-00005-of-00005.safetensors
    2.1 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • model.safetensors.index.json
    152 kB
    Upload folder using huggingface_hub over 1 year ago
  • special_tokens_map.json
    301 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer.json
    9.09 MB
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer_config.json
    50.5 kB
    Upload folder using huggingface_hub over 1 year ago