Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

TencentARC
/
LLaMA-Pro-8B

Text Generation
Transformers
PyTorch
Safetensors
llama
text-generation-inference
Model card Files Files and versions
xet
Community
10

Instructions to use TencentARC/LLaMA-Pro-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use TencentARC/LLaMA-Pro-8B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="TencentARC/LLaMA-Pro-8B")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("TencentARC/LLaMA-Pro-8B")
    model = AutoModelForCausalLM.from_pretrained("TencentARC/LLaMA-Pro-8B")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use TencentARC/LLaMA-Pro-8B with vLLM:

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

    How to use TencentARC/LLaMA-Pro-8B 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 "TencentARC/LLaMA-Pro-8B" \
        --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": "TencentARC/LLaMA-Pro-8B",
    		"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 "TencentARC/LLaMA-Pro-8B" \
            --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": "TencentARC/LLaMA-Pro-8B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use TencentARC/LLaMA-Pro-8B with Docker Model Runner:

    docker model run hf.co/TencentARC/LLaMA-Pro-8B
LLaMA-Pro-8B
33.4 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 12 commits
chujiezheng's picture
chujiezheng
change "use_cache" to true to speed up generation
c0f42a2 over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    2.15 kB
    Update README.md (#4) over 2 years ago
  • config.json
    629 Bytes
    change "use_cache" to true to speed up generation over 2 years ago
  • generation_config.json
    183 Bytes
    revise config over 2 years ago
  • model-00001-of-00002.safetensors
    9.98 GB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • model-00002-of-00002.safetensors
    6.74 GB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • model.safetensors.index.json
    35.1 kB
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • pytorch_model-00001-of-00002.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.BFloat16Storage"

    What is a pickle import?

    9.98 GB
    xet
    first commit over 2 years ago
  • pytorch_model-00002-of-00002.bin

    Detected Pickle imports (3)

    • "torch.BFloat16Storage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    6.74 GB
    xet
    first commit over 2 years ago
  • pytorch_model.bin.index.json
    33.4 kB
    first commit over 2 years ago
  • special_tokens_map.json
    437 Bytes
    revise config over 2 years ago
  • tokenizer.model
    500 kB
    xet
    first commit over 2 years ago
  • tokenizer_config.json
    855 Bytes
    revise config over 2 years ago