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

  • Log In
  • Sign Up

haihp02
/
pama

Text Generation
Transformers
Safetensors
falcon
custom_code
text-generation-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use haihp02/pama with Transformers:

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

    How to use haihp02/pama with vLLM:

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

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

    How to use haihp02/pama with Docker Model Runner:

    docker model run hf.co/haihp02/pama
pama
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
haihp02's picture
haihp02
Upload FalconForCausalLM
a8dd492 verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    5.17 kB
    Upload FalconForCausalLM 7 months ago
  • config.json
    1.37 kB
    Upload FalconForCausalLM 7 months ago
  • generation_config.json
    111 Bytes
    Update model 7 months ago
  • merges.txt
    456 kB
    Update model 7 months ago
  • model-00001-of-00002.safetensors
    4.98 GB
    xet
    Update model 7 months ago
  • model-00002-of-00002.safetensors
    269 MB
    xet
    Update model 7 months ago
  • model.safetensors
    2.62 GB
    xet
    Upload FalconForCausalLM 7 months ago
  • model.safetensors.index.json
    25.4 kB
    Update model 7 months ago
  • special_tokens_map.json
    473 Bytes
    Update model 7 months ago
  • tokenizer.json
    3.56 MB
    Update model 7 months ago
  • tokenizer_config.json
    507 Bytes
    Update model 7 months ago
  • vocab.json
    798 kB
    Update model 7 months ago