Instructions to use jlpan/SteloCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jlpan/SteloCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jlpan/SteloCoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jlpan/SteloCoder") model = AutoModelForCausalLM.from_pretrained("jlpan/SteloCoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jlpan/SteloCoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jlpan/SteloCoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jlpan/SteloCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jlpan/SteloCoder
- SGLang
How to use jlpan/SteloCoder 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 "jlpan/SteloCoder" \ --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": "jlpan/SteloCoder", "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 "jlpan/SteloCoder" \ --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": "jlpan/SteloCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jlpan/SteloCoder with Docker Model Runner:
docker model run hf.co/jlpan/SteloCoder
End of training
Browse filesFiles changed (9)
- README.mdAdded+74
- config.jsonAdded+39
- generation_config.jsonAdded+6
- pytorch_model-00001-of-00004.binAdded+3
- pytorch_model-00002-of-00004.binAdded+3
- pytorch_model-00003-of-00004.binAdded+3
- pytorch_model-00004-of-00004.binAdded+3
- pytorch_model.bin.index.jsonAdded
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374---license: bigcode-openrail-mbase_model: bigcode/starcodertags:- generated_from_trainermodel-index:- name: moe_test results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# moe_test
This model is a fine-tuned version of [bigcode/starcoder](https://huggingface.co/bigcode/starcoder) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.1210- Learning Rate: 0.0
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 4e-05- train_batch_size: 1- eval_batch_size: 1- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 4- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- training_steps: 700
### Training results
| Training Loss | Epoch | Step | Validation Loss | Rate ||:-------------:|:-----:|:----:|:---------------:|:------:|| 0.1429 | 0.07 | 50 | 0.1353 | 4e-05 || 0.1442 | 0.14 | 100 | 0.1355 | 0.0000 || 0.1392 | 0.21 | 150 | 0.1331 | 0.0000 || 0.1398 | 0.29 | 200 | 0.1302 | 0.0000 || 0.1428 | 0.36 | 250 | 0.1281 | 0.0000 || 0.137 | 1.01 | 300 | 0.1259 | 0.0000 || 0.1439 | 1.08 | 350 | 0.1245 | 0.0000 || 0.1422 | 1.15 | 400 | 0.1253 | 0.0000 || 0.137 | 1.22 | 450 | 0.1219 | 0.0000 || 0.1397 | 1.29 | 500 | 0.1209 | 0.0000 || 0.1405 | 1.36 | 550 | 0.1209 | 0.0000 || 0.1376 | 2.01 | 600 | 0.1210 | 0.0000 || 0.1427 | 2.08 | 650 | 0.1210 | 0.0000 || 0.1404 | 2.15 | 700 | 0.1210 | 0.0 |
### Framework versions
- Transformers 4.32.1- Pytorch 2.0.1+cu117- Datasets 2.14.4- Tokenizers 0.13.3123456789101112131415161718192021222324252627282930313233343536373839{ "_name_or_path": "bigcode/starcoder", "activation_function": "gelu", "architectures": [ "GPTBigCodeForCausalLM" ], "attention_softmax_in_fp32": true, "attn_pdrop": 0.1, "bos_token_id": 0, "embd_pdrop": 0.1, "eos_token_id": 0, "inference_runner": 0, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "max_batch_size": null, "max_sequence_length": null, "model_type": "gpt_bigcode", "multi_query": true, "n_embd": 6144, "n_head": 48, "n_inner": 24576, "n_layer": 40, "n_positions": 8192, "pad_key_length": true, "pre_allocate_kv_cache": false, "resid_pdrop": 0.1, "scale_attention_softmax_in_fp32": true, "scale_attn_weights": true, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "torch_dtype": "float16", "transformers_version": "4.32.1", "use_cache": true, "validate_runner_input": true, "vocab_size": 49152}123456{ "_from_model_config": true, "bos_token_id": 0, "eos_token_id": 0, "transformers_version": "4.32.1"}123version https://git-lfs.github.com/spec/v1oid sha256:bc0d9dca38f82d341985bb8c0efbdc243e7e5c9cfe370d87c75d98108566ec5asize 9991489184123version https://git-lfs.github.com/spec/v1oid sha256:4f792aef9c1a20a870f1e3db8efe0493e69fafd71e24cc4f44aa67d5332c44fcsize 9892219467123version https://git-lfs.github.com/spec/v1oid sha256:b609967bba3f18a228e11341d90c80269756baa1144e591ae095afc6b5f31a91size 9892219467123version https://git-lfs.github.com/spec/v1oid sha256:8ad2c67a4a7cb1d8245ec4f135f543f7f3771bb5993e79ee48d2c553485d825csize 1366486131123version https://git-lfs.github.com/spec/v1oid sha256:f4fb93da08d8677d965035a9f91d39b2cd4f271f13ea89a6bd5408309f81646dsize 4027README.mdAdded+74
config.jsonAdded+39
generation_config.jsonAdded+6
pytorch_model-00001-of-00004.binAdded+3
pytorch_model-00002-of-00004.binAdded+3
pytorch_model-00003-of-00004.binAdded+3
pytorch_model-00004-of-00004.binAdded+3
pytorch_model.bin.index.jsonAdded
training_args.binAdded+3