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

  • Log In
  • Sign Up

SebastianBodza
/
mpt-30B-qlora-multi_GPU

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

Instructions to use SebastianBodza/mpt-30B-qlora-multi_GPU with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use SebastianBodza/mpt-30B-qlora-multi_GPU with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="SebastianBodza/mpt-30B-qlora-multi_GPU", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("SebastianBodza/mpt-30B-qlora-multi_GPU", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("SebastianBodza/mpt-30B-qlora-multi_GPU", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use SebastianBodza/mpt-30B-qlora-multi_GPU with vLLM:

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

    How to use SebastianBodza/mpt-30B-qlora-multi_GPU 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 "SebastianBodza/mpt-30B-qlora-multi_GPU" \
        --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": "SebastianBodza/mpt-30B-qlora-multi_GPU",
    		"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 "SebastianBodza/mpt-30B-qlora-multi_GPU" \
            --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": "SebastianBodza/mpt-30B-qlora-multi_GPU",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use SebastianBodza/mpt-30B-qlora-multi_GPU with Docker Model Runner:

    docker model run hf.co/SebastianBodza/mpt-30B-qlora-multi_GPU
mpt-30B-qlora-multi_GPU
2.27 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
SebastianBodza's picture
SebastianBodza
Update README.md
a748a2b almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    3.29 kB
    Update README.md almost 3 years ago
  • adapt_tokenizer.py
    1.75 kB
    Upload 19 files almost 3 years ago
  • attention.py
    16.1 kB
    Upload 19 files almost 3 years ago
  • blocks.py
    2.49 kB
    Upload 19 files almost 3 years ago
  • config.json
    1.23 kB
    Upload 19 files almost 3 years ago
  • configuration_mpt.py
    9.08 kB
    Upload 19 files almost 3 years ago
  • custom_embedding.py
    305 Bytes
    Upload 19 files almost 3 years ago
  • export_hf_checkpoint.py
    1.15 kB
    Upload 19 files almost 3 years ago
  • flash_attn_triton.py
    28.2 kB
    Upload 19 files almost 3 years ago
  • generation_config.json
    91 Bytes
    Upload 19 files almost 3 years ago
  • hf_prefixlm_converter.py
    27.2 kB
    Upload 19 files almost 3 years ago
  • meta_init_context.py
    3.64 kB
    Upload 19 files almost 3 years ago
  • modeling_mpt.py
    19.7 kB
    Upload 19 files almost 3 years ago
  • norm.py
    2.56 kB
    Upload 19 files almost 3 years ago
  • param_init_fns.py
    12.6 kB
    Upload 19 files almost 3 years ago
  • pytorch_model.bin.index.json
    24 kB
    Upload 19 files almost 3 years ago
  • special_tokens_map.json
    99 Bytes
    Upload 19 files almost 3 years ago
  • tokenizer.json
    2.11 MB
    Upload 19 files almost 3 years ago
  • tokenizer_config.json
    237 Bytes
    Upload 19 files almost 3 years ago