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

maicomputer
/
gpt4-x-alpaca

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

Instructions to use maicomputer/gpt4-x-alpaca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use maicomputer/gpt4-x-alpaca with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="maicomputer/gpt4-x-alpaca")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("maicomputer/gpt4-x-alpaca")
    model = AutoModelForCausalLM.from_pretrained("maicomputer/gpt4-x-alpaca", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use maicomputer/gpt4-x-alpaca with vLLM:

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

    How to use maicomputer/gpt4-x-alpaca 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 "maicomputer/gpt4-x-alpaca" \
        --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": "maicomputer/gpt4-x-alpaca",
    		"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 "maicomputer/gpt4-x-alpaca" \
            --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": "maicomputer/gpt4-x-alpaca",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use maicomputer/gpt4-x-alpaca with Docker Model Runner:

    docker model run hf.co/maicomputer/gpt4-x-alpaca
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

[READ!!] Model License

pinned
5
#13 opened over 3 years ago by
maicomputer

Can you share link to the dataset?

pinned
👍 2
2
#2 opened over 3 years ago by
ryan283947

Adding `safetensors` variant of this model

#20 opened 8 months ago by
SFconvertbot

Adding `safetensors` variant of this model

#19 opened over 2 years ago by
SFconvertbot

error from updated tokenizer

#17 opened about 3 years ago by
BrentBaccala

Unable to load model

#16 opened about 3 years ago by
xDynames

Running out of memory with my 4090(CUDA out of memory error)

1
#15 opened over 3 years ago by
shuriken200

is there gpt4-x-alpaca 7b model

👍 1
1
#14 opened over 3 years ago by
scrawnyether

How to set the inference ?

1
#12 opened over 3 years ago by
hanifabdlh

training the model

👍 3
#11 opened over 3 years ago by
redbeardybeard

Please investigate weird model behavior on RTX 3090 and RTX 3090TI

1
#10 opened over 3 years ago by
huberto

KeyError: 'model.layers.0.self_attn.rotary_emb.cos_cached'

#9 opened over 3 years ago by
tonyaw

system requirements?

4
#8 opened over 3 years ago by
Said2k

4-bit quantized?

6
#7 opened over 3 years ago by
nacs

fp16 version of the model

1
#6 opened over 3 years ago by
Light4Bear

How do you install this?

5
#3 opened over 3 years ago by
JonOne

which dataset?

13
#1 opened over 3 years ago by
cruiser
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs