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

  • Log In
  • Sign Up

pandalla
/
MBTIGPT_zh_ESTP

Text Generation
Transformers
PyTorch
Chinese
English
baichuan
feature-extraction
MachineMindset
MBTI
custom_code
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use pandalla/MBTIGPT_zh_ESTP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use pandalla/MBTIGPT_zh_ESTP with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="pandalla/MBTIGPT_zh_ESTP", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("pandalla/MBTIGPT_zh_ESTP", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use pandalla/MBTIGPT_zh_ESTP with vLLM:

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

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

    How to use pandalla/MBTIGPT_zh_ESTP with Docker Model Runner:

    docker model run hf.co/pandalla/MBTIGPT_zh_ESTP
MBTIGPT_zh_ESTP
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
JessyTsu1's picture
JessyTsu1
Update README.md
6e304f3 over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • Machine_Mindset基于baichuan的模型社区许可协议.pdf
    258 kB
    init over 2 years ago
  • README.md
    5.49 kB
    Update README.md over 2 years ago
  • config.json
    861 Bytes
    init over 2 years ago
  • configuration_baichuan.py
    2.45 kB
    init over 2 years ago
  • generation_config.json
    285 Bytes
    init over 2 years ago
  • generation_utils.py
    2.97 kB
    init over 2 years ago
  • modeling_baichuan.py
    33.2 kB
    init over 2 years ago
  • pytorch_model-00001-of-00002.bin
    9.93 GB
    xet
    init over 2 years ago
  • pytorch_model-00002-of-00002.bin
    5.08 GB
    xet
    init over 2 years ago
  • pytorch_model.bin.index.json
    18.7 kB
    init over 2 years ago
  • quantizer.py
    9.07 kB
    init over 2 years ago
  • special_tokens_map.json
    548 Bytes
    init over 2 years ago
  • tokenization_baichuan.py
    9.61 kB
    init over 2 years ago
  • tokenizer.model
    2 MB
    xet
    init over 2 years ago
  • tokenizer_config.json
    1.04 kB
    init over 2 years ago