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

  • Log In
  • Sign Up

ayjays132
/
PHILLNET-1

Text Generation
Transformers
PyTorch
Safetensors
English
gpt2
conversational
dynamic
adaptive
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use ayjays132/PHILLNET-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ayjays132/PHILLNET-1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ayjays132/PHILLNET-1")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("ayjays132/PHILLNET-1")
    model = AutoModelForCausalLM.from_pretrained("ayjays132/PHILLNET-1")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use ayjays132/PHILLNET-1 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "ayjays132/PHILLNET-1"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ayjays132/PHILLNET-1",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/ayjays132/PHILLNET-1
  • SGLang

    How to use ayjays132/PHILLNET-1 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 "ayjays132/PHILLNET-1" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ayjays132/PHILLNET-1",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "ayjays132/PHILLNET-1" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ayjays132/PHILLNET-1",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use ayjays132/PHILLNET-1 with Docker Model Runner:

    docker model run hf.co/ayjays132/PHILLNET-1
PHILLNET-1
6.19 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 30 commits
ayjays132's picture
ayjays132
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
37ef5ea verified 11 months ago
  • Images
    Upload 5 files about 1 year ago
  • .gitattributes
    1.81 kB
    Upload 5 files about 1 year ago
  • LICENSE.md
    7.77 kB
    Create LICENSE.md about 1 year ago
  • README.md
    17.3 kB
    Update README.md about 1 year ago
  • added_tokens.json
    1.29 kB
    Upload 8 files about 1 year ago
  • config.json
    943 Bytes
    Upload config.json about 1 year ago
  • generation_config.json
    151 Bytes
    Upload 17 files about 1 year ago
  • merges.txt
    456 kB
    Upload 17 files about 1 year ago
  • model.safetensors
    3.09 GB
    xet
    Adding `safetensors` variant of this model (#1) 11 months ago
  • optimizer.pt

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    51.6 kB
    xet
    Upload 17 files about 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.FloatStorage",
    • "torch.LongStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    3.09 GB
    xet
    Upload 8 files about 1 year ago
  • pytorch_model.bin.index.json
    1.71 MB
    Upload 17 files about 1 year ago
  • special_tokens_map.json
    8.42 kB
    Upload 8 files about 1 year ago
  • tokenizer.json
    3.57 MB
    Upload 8 files about 1 year ago
  • tokenizer_config.json
    11.2 kB
    Upload 8 files about 1 year ago
  • vocab.json
    798 kB
    Upload 17 files about 1 year ago