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

  • Log In
  • Sign Up

oakela
/
finetune_starcoder2_nolora

Text Generation
Transformers
TensorBoard
Safetensors
starcoder2
trl
sft
Generated from Trainer
text-generation-inference
Model card Files Files and versions
xet
Metrics Training metrics Community

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

  • Libraries
  • Transformers

    How to use oakela/finetune_starcoder2_nolora with Transformers:

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

    How to use oakela/finetune_starcoder2_nolora with vLLM:

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

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

    How to use oakela/finetune_starcoder2_nolora with Docker Model Runner:

    docker model run hf.co/oakela/finetune_starcoder2_nolora
finetune_starcoder2_nolora
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
oakela's picture
oakela
oakela/finetuned_starcoder2_600steps
3a4fb18 verified about 2 years ago
  • runs
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    1.21 kB
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • config.json
    772 Bytes
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • generation_config.json
    116 Bytes
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • merges.txt
    442 kB
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • model-00001-of-00003.safetensors
    4.91 GB
    xet
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • model-00002-of-00003.safetensors
    4.99 GB
    xet
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • model-00003-of-00003.safetensors
    2.22 GB
    xet
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • model.safetensors.index.json
    39 kB
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • special_tokens_map.json
    1.33 kB
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • tokenizer.json
    2.06 MB
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • tokenizer_config.json
    7.91 kB
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • training_args.bin
    4.92 kB
    xet
    oakela/finetuned_starcoder2_600steps about 2 years ago
  • vocab.json
    777 kB
    oakela/finetuned_starcoder2_600steps about 2 years ago