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

  • Log In
  • Sign Up

felcas93
/
starcoder1b-iac

Text Generation
PEFT
Safetensors
Transformers
lora
Model card Files Files and versions
xet
Community

Instructions to use felcas93/starcoder1b-iac with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use felcas93/starcoder1b-iac with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoderbase-1b")
    model = PeftModel.from_pretrained(base_model, "felcas93/starcoder1b-iac")
  • Transformers

    How to use felcas93/starcoder1b-iac with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="felcas93/starcoder1b-iac")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("felcas93/starcoder1b-iac", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use felcas93/starcoder1b-iac with vLLM:

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

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

    How to use felcas93/starcoder1b-iac with Docker Model Runner:

    docker model run hf.co/felcas93/starcoder1b-iac
starcoder1b-iac
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
felcas93's picture
felcas93
update: new starcoder-1b LoRA adapter
212ba45 verified 6 months ago
  • checkpoint-1
    update: new starcoder-1b LoRA adapter 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    5.2 kB
    update: new starcoder-1b LoRA adapter 6 months ago
  • adapter_config.json
    859 Bytes
    update: new starcoder-1b LoRA adapter 6 months ago
  • adapter_model.safetensors
    28.7 MB
    xet
    update: new starcoder-1b LoRA adapter 6 months ago
  • merges.txt
    442 kB
    update: new starcoder-1b LoRA adapter 6 months ago
  • special_tokens_map.json
    906 Bytes
    update: new starcoder-1b LoRA adapter 6 months ago
  • tokenizer.json
    3.48 MB
    update: new starcoder-1b LoRA adapter 6 months ago
  • tokenizer_config.json
    4.14 kB
    update: new starcoder-1b LoRA adapter 6 months ago
  • training_args.bin

    Detected Pickle imports (10)

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

    How to fix it?

    5.43 kB
    xet
    update: new starcoder-1b LoRA adapter 6 months ago
  • vocab.json
    777 kB
    update: new starcoder-1b LoRA adapter 6 months ago