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

  • Log In
  • Sign Up

NaughtyDog97
/
DFE-GPS-9B

Text Generation
Transformers
Safetensors
fegeo-llama
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use NaughtyDog97/DFE-GPS-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use NaughtyDog97/DFE-GPS-9B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="NaughtyDog97/DFE-GPS-9B", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("NaughtyDog97/DFE-GPS-9B", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use NaughtyDog97/DFE-GPS-9B with vLLM:

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

    How to use NaughtyDog97/DFE-GPS-9B 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 "NaughtyDog97/DFE-GPS-9B" \
        --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": "NaughtyDog97/DFE-GPS-9B",
    		"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 "NaughtyDog97/DFE-GPS-9B" \
            --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": "NaughtyDog97/DFE-GPS-9B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use NaughtyDog97/DFE-GPS-9B with Docker Model Runner:

    docker model run hf.co/NaughtyDog97/DFE-GPS-9B
DFE-GPS-9B
18.5 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 18 commits
NaughtyDog97's picture
NaughtyDog97
fix typo
19d8287 verified over 1 year ago
  • sample
    111 over 1 year ago
  • .DS_Store
    6.15 kB
    update almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    6.83 kB
    fix typo over 1 year ago
  • config.json
    1.31 kB
    update almost 2 years ago
  • configuration_fegeo_llama.py
    11.6 kB
    first commit almost 2 years ago
  • generation_config.json
    132 Bytes
    first commit almost 2 years ago
  • model-00001-of-00004.safetensors
    4.93 GB
    xet
    update almost 2 years ago
  • model-00002-of-00004.safetensors
    4.98 GB
    xet
    update almost 2 years ago
  • model-00003-of-00004.safetensors
    4.97 GB
    xet
    update almost 2 years ago
  • model-00004-of-00004.safetensors
    3.62 GB
    xet
    update almost 2 years ago
  • model.safetensors.index.json
    88.9 kB
    first commit almost 2 years ago
  • modeling_fegeo_llama.py
    126 kB
    Upload modeling_fegeo_llama.py almost 2 years ago
  • special_tokens_map.json
    567 Bytes
    first commit almost 2 years ago
  • tokenizer.model
    1.03 MB
    xet
    first commit almost 2 years ago
  • tokenizer_config.json
    1.67 kB
    first commit almost 2 years ago