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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ajibawa-2023
/
carl-llama-2-13b

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

Instructions to use ajibawa-2023/carl-llama-2-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ajibawa-2023/carl-llama-2-13b with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ajibawa-2023/carl-llama-2-13b")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("ajibawa-2023/carl-llama-2-13b")
    model = AutoModelForCausalLM.from_pretrained("ajibawa-2023/carl-llama-2-13b", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use ajibawa-2023/carl-llama-2-13b with vLLM:

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

    How to use ajibawa-2023/carl-llama-2-13b 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 "ajibawa-2023/carl-llama-2-13b" \
        --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": "ajibawa-2023/carl-llama-2-13b",
    		"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 "ajibawa-2023/carl-llama-2-13b" \
            --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": "ajibawa-2023/carl-llama-2-13b",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use ajibawa-2023/carl-llama-2-13b with Docker Model Runner:

    docker model run hf.co/ajibawa-2023/carl-llama-2-13b
carl-llama-2-13b
48.3 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
ajibawa-2023's picture
ajibawa-2023
5d0f73cb40df17e61b9ea790cd80f907d39774b6b0f4daf50fc7e40c672dd828
909cf6d about 3 years ago
  • .gitattributes
    1.8 kB
    5d0f73cb40df17e61b9ea790cd80f907d39774b6b0f4daf50fc7e40c672dd828 about 3 years ago
  • README.md
    33 Bytes
    initial commit about 3 years ago
  • pytorch_model.bin-aa
    9.66 GB
    xet
    baae46d150b38705c2ca3c2a667edc460586ec84b7ea77d9854e556b3f01254d about 3 years ago
  • pytorch_model.bin-ab
    9.66 GB
    xet
    155b947abe38b42b87a9f7fdf389dc7b8ba49641991a4a1d72c904c39777a6fa about 3 years ago
  • pytorch_model.bin-ac
    9.66 GB
    xet
    e491733aa5e3aec5c445b583800af1738e58a40f4fde325155954f8d737a1365 about 3 years ago
  • pytorch_model.bin-ad
    9.66 GB
    xet
    86d24c69d12435f288ecc6a59916332a05c62020c3210c04a3db58cf0b13fd46 about 3 years ago
  • pytorch_model.bin-ae
    9.66 GB
    xet
    5d0f73cb40df17e61b9ea790cd80f907d39774b6b0f4daf50fc7e40c672dd828 about 3 years ago