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

  • Log In
  • Sign Up

ncgc
/
statichh-pythia-2.8b-sft-bf16

Text Generation
Transformers
Safetensors
gpt_neox
Generated from Trainer
sft
trl
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use ncgc/statichh-pythia-2.8b-sft-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ncgc/statichh-pythia-2.8b-sft-bf16 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ncgc/statichh-pythia-2.8b-sft-bf16")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("ncgc/statichh-pythia-2.8b-sft-bf16")
    model = AutoModelForCausalLM.from_pretrained("ncgc/statichh-pythia-2.8b-sft-bf16")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use ncgc/statichh-pythia-2.8b-sft-bf16 with vLLM:

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

    How to use ncgc/statichh-pythia-2.8b-sft-bf16 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 "ncgc/statichh-pythia-2.8b-sft-bf16" \
        --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": "ncgc/statichh-pythia-2.8b-sft-bf16",
    		"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 "ncgc/statichh-pythia-2.8b-sft-bf16" \
            --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": "ncgc/statichh-pythia-2.8b-sft-bf16",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use ncgc/statichh-pythia-2.8b-sft-bf16 with Docker Model Runner:

    docker model run hf.co/ncgc/statichh-pythia-2.8b-sft-bf16
statichh-pythia-2.8b-sft-bf16
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ncgc's picture
ncgc
Training in progress, step 18048
ea26f2a verified 9 months ago
  • .gitattributes
    1.52 kB
    initial commit 9 months ago
  • README.md
    1.76 kB
    Training in progress, step 18048 9 months ago
  • config.json
    759 Bytes
    Training in progress, step 18048 9 months ago
  • model-00001-of-00003.safetensors
    5 GB
    xet
    Training in progress, step 18048 9 months ago
  • model-00002-of-00003.safetensors
    4.96 GB
    xet
    Training in progress, step 18048 9 months ago
  • model-00003-of-00003.safetensors
    1.14 GB
    xet
    Training in progress, step 18048 9 months ago
  • model.safetensors.index.json
    34 kB
    Training in progress, step 18048 9 months ago
  • special_tokens_map.json
    473 Bytes
    Training in progress, step 18048 9 months ago
  • tokenizer.json
    3.56 MB
    Training in progress, step 18048 9 months ago
  • tokenizer_config.json
    4.88 kB
    Training in progress, step 18048 9 months ago
  • training_args.bin

    Detected Pickle imports (10)

    • "transformers.training_args.OptimizerNames",
    • "transformers.trainer_utils.HubStrategy",
    • "accelerate.state.PartialState",
    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.trainer_utils.SaveStrategy",
    • "transformers.trainer_utils.SchedulerType",
    • "trl.trainer.sft_config.SFTConfig",
    • "accelerate.utils.dataclasses.DistributedType",
    • "torch.device",
    • "transformers.trainer_pt_utils.AcceleratorConfig"

    How to fix it?

    6.23 kB
    xet
    Training in progress, step 18048 9 months ago