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

AlexHung29629
/
test_mllama_11B_v13

Text Generation
Transformers
Safetensors
llama3
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use AlexHung29629/test_mllama_11B_v13 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use AlexHung29629/test_mllama_11B_v13 with Transformers:

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

    How to use AlexHung29629/test_mllama_11B_v13 with vLLM:

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

    How to use AlexHung29629/test_mllama_11B_v13 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 "AlexHung29629/test_mllama_11B_v13" \
        --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": "AlexHung29629/test_mllama_11B_v13",
    		"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 "AlexHung29629/test_mllama_11B_v13" \
            --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": "AlexHung29629/test_mllama_11B_v13",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use AlexHung29629/test_mllama_11B_v13 with Docker Model Runner:

    docker model run hf.co/AlexHung29629/test_mllama_11B_v13
test_mllama_11B_v13
17.8 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 8 commits
AlexHung29629's picture
AlexHung29629
Upload Llama3ForCausalLM
e7b1b15 verified over 1 year ago
  • .gitattributes
    1.57 kB
    first commit over 1 year ago
  • README.md
    5.17 kB
    Upload Llama3ForCausalLM over 1 year ago
  • audio_processing_mllama.py
    3.09 kB
    first commit over 1 year ago
  • chat_template.json
    5.15 kB
    first commit over 1 year ago
  • config.json
    6.7 kB
    Upload Llama3ForCausalLM over 1 year ago
  • configuration_llama3.py
    4.02 kB
    first commit over 1 year ago
  • generation_config.json
    155 Bytes
    first commit over 1 year ago
  • mllama_audio_model.py
    5.88 kB
    Update mllama_audio_model.py over 1 year ago
  • model-00001-of-00004.safetensors
    4.98 GB
    xet
    Upload Llama3ForCausalLM over 1 year ago
  • model-00002-of-00004.safetensors
    5 GB
    xet
    Upload Llama3ForCausalLM over 1 year ago
  • model-00003-of-00004.safetensors
    4.92 GB
    xet
    Upload Llama3ForCausalLM over 1 year ago
  • model-00004-of-00004.safetensors
    2.87 GB
    xet
    Upload Llama3ForCausalLM over 1 year ago
  • model.safetensors.index.json
    119 kB
    Upload Llama3ForCausalLM over 1 year ago
  • modeling_llama3.py
    11.3 kB
    Update modeling_llama3.py over 1 year ago
  • preprocessor_config.json
    866 Bytes
    first commit over 1 year ago
  • processing_mllama.py
    17 kB
    first commit over 1 year ago
  • special_tokens_map.json
    454 Bytes
    first commit over 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    first commit over 1 year ago
  • tokenizer_config.json
    64.9 kB
    Update tokenizer_config.json over 1 year ago