Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

MBZUAI-LLM
/
LLaMA-7B-GLoRA-ShareGPT

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

Instructions to use MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT", trust_remote_code=True)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT with vLLM:

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

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

    How to use MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT with Docker Model Runner:

    docker model run hf.co/MBZUAI-LLM/LLaMA-7B-GLoRA-ShareGPT
LLaMA-7B-GLoRA-ShareGPT
27 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
Arnav0400's picture
Arnav0400
updated readme
a7aa1cd about 3 years ago
  • .gitattributes
    1.52 kB
    initial commit over 3 years ago
  • LICENSE.txt
    10.6 kB
    Upload 4 files over 3 years ago
  • README.md
    4.19 kB
    updated readme about 3 years ago
  • config.json
    781 Bytes
    removed references about 3 years ago
  • configuration_llama.py
    8.4 kB
    Upload LlamaForCausalLM over 3 years ago
  • generation_config.json
    132 Bytes
    Upload LlamaForCausalLM over 3 years ago
  • modeling_llama.py
    45.7 kB
    Upload LlamaForCausalLM over 3 years ago
  • pytorch_model-00001-of-00003.bin
    9.88 GB
    xet
    Upload LlamaForCausalLM over 3 years ago
  • pytorch_model-00002-of-00003.bin
    9.9 GB
    xet
    Upload LlamaForCausalLM over 3 years ago
  • pytorch_model-00003-of-00003.bin
    7.18 GB
    xet
    Upload LlamaForCausalLM over 3 years ago
  • pytorch_model.bin.index.json
    31.7 kB
    Upload LlamaForCausalLM over 3 years ago
  • special_tokens_map.json
    455 Bytes
    Update special_tokens_map.json over 3 years ago
  • tokenization_llama.py
    16.7 kB
    Create tokenization_llama.py over 3 years ago
  • tokenization_llama_fast.py
    16.7 kB
    Create tokenization_llama_fast.py over 3 years ago
  • tokenizer.model
    500 kB
    xet
    Upload 4 files over 3 years ago
  • tokenizer_config.json
    699 Bytes
    Update tokenizer_config.json over 3 years ago