Text Generation
Transformers
PyTorch
TensorBoard
code
gpt2
Generated from Trainer
clojure
codegen
custom_code
text-generation-inference
Run this model with HF Jobs
Run mrm8488/santacoder-finetuned-the-stack-clojure on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/mrm8488/santacoder-finetuned-the-stack-clojure. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mrm8488/santacoder-finetuned-the-stack-clojure on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/mrm8488/santacoder-finetuned-the-stack-clojure. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/mrm8488/santacoder-finetuned-the-stack-clojure. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use mrm8488/santacoder-finetuned-the-stack-clojure with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrm8488/santacoder-finetuned-the-stack-clojure with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mrm8488/santacoder-finetuned-the-stack-clojure", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mrm8488/santacoder-finetuned-the-stack-clojure", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("mrm8488/santacoder-finetuned-the-stack-clojure", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mrm8488/santacoder-finetuned-the-stack-clojure with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mrm8488/santacoder-finetuned-the-stack-clojure" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mrm8488/santacoder-finetuned-the-stack-clojure", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mrm8488/santacoder-finetuned-the-stack-clojure
- SGLang
How to use mrm8488/santacoder-finetuned-the-stack-clojure 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 "mrm8488/santacoder-finetuned-the-stack-clojure" \ --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": "mrm8488/santacoder-finetuned-the-stack-clojure", "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 "mrm8488/santacoder-finetuned-the-stack-clojure" \ --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": "mrm8488/santacoder-finetuned-the-stack-clojure", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mrm8488/santacoder-finetuned-the-stack-clojure with Docker Model Runner:
docker model run hf.co/mrm8488/santacoder-finetuned-the-stack-clojure
Training in progress, step 500
Browse filesFiles changed (10)
- .gitignoreAdded+1
- config.jsonAdded+37
- pytorch_model.binAdded+3
- runs/Feb11_19-55-17_2cb2cefa7ce2/1676145335.978225/events.out.tfevents.1676145335.2cb2cefa7ce2.20700.1Added+3
- runs/Feb11_19-55-17_2cb2cefa7ce2/events.out.tfevents.1676145335.2cb2cefa7ce2.20700.0Added+3
- runs/Feb12_11-20-39_2cb2cefa7ce2/1676200847.8718195/events.out.tfevents.1676200847.2cb2cefa7ce2.3602.1Added+3
- runs/Feb12_11-20-39_2cb2cefa7ce2/events.out.tfevents.1676200847.2cb2cefa7ce2.3602.0Added+3
- runs/Feb12_11-38-02_2cb2cefa7ce2/1676201890.291244/events.out.tfevents.1676201890.2cb2cefa7ce2.684.1Added+3
- runs/Feb12_11-38-02_2cb2cefa7ce2/events.out.tfevents.1676201890.2cb2cefa7ce2.684.0Added+3
- training_args.binAdded+3
1checkpoint-*/12345678910111213141516171819202122232425262728293031323334353637{ "_name_or_path": "bigcode/santacoder", "activation_function": "gelu_fast", "architectures": [ "GPT2LMHeadCustomModel" ], "attention_head_type": "multiquery", "attn_pdrop": 0.1, "auto_map": { "AutoConfig": "configuration_gpt2_mq.GPT2CustomConfig", "AutoModelForCausalLM": "modeling_gpt2_mq.GPT2LMHeadCustomModel" }, "bos_token_id": 50256, "embd_pdrop": 0.1, "eos_token_id": 50256, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_embd": 2048, "n_head": 16, "n_inner": 8192, "n_layer": 24, "n_positions": 2048, "reorder_and_upcast_attn": false, "resid_pdrop": 0.1, "scale_attn_by_inverse_layer_idx": false, "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": "float32", "transformers_version": "4.26.0.dev0", "use_cache": false, "vocab_size": 49280}123version https://git-lfs.github.com/spec/v1oid sha256:ad9a9ca61f8e357a2dd93e136417cb2bf526ec31b1c68292a9a4af5d8e6f5024size 4600336581123version https://git-lfs.github.com/spec/v1oid sha256:43d6c4537c7b36ad3be0d8ab74ddf3700378e63ee7bc999f8df08f4524794848size 5745123version https://git-lfs.github.com/spec/v1oid sha256:c6ee29b492b13e6b46a0772c31b04364fc8cd5ff856a431e88c737db07ac5a30size 6723123version https://git-lfs.github.com/spec/v1oid sha256:4980424bae3c575aa6d31dfeb08f3bc3b708cb85389275986d44bee28e680084size 5745123version https://git-lfs.github.com/spec/v1oid sha256:818654dda7bf744983a282dd44b8554106314fe6a25ea07d9de14f4396441c5csize 5479123version https://git-lfs.github.com/spec/v1oid sha256:ef4452847408455c6cfedd85bd46f777267dc84ef8f0c5341d9661adb537c89csize 5745123version https://git-lfs.github.com/spec/v1oid sha256:3599c5ad059e9c9c5ae88ae7220fb05532c03354381e3d6b09feab8739955903size 12332123version https://git-lfs.github.com/spec/v1oid sha256:cf05cb034bf7403075300fba2e7625b78b53e9e6b6fbdd0180eedfdc13eed28fsize 3515.gitignoreAdded+1
config.jsonAdded+37
pytorch_model.binAdded+3
runs/Feb11_19-55-17_2cb2cefa7ce2/1676145335.978225/events.out.tfevents.1676145335.2cb2cefa7ce2.20700.1Added+3
runs/Feb11_19-55-17_2cb2cefa7ce2/events.out.tfevents.1676145335.2cb2cefa7ce2.20700.0Added+3
runs/Feb12_11-20-39_2cb2cefa7ce2/1676200847.8718195/events.out.tfevents.1676200847.2cb2cefa7ce2.3602.1Added+3
runs/Feb12_11-20-39_2cb2cefa7ce2/events.out.tfevents.1676200847.2cb2cefa7ce2.3602.0Added+3
runs/Feb12_11-38-02_2cb2cefa7ce2/1676201890.291244/events.out.tfevents.1676201890.2cb2cefa7ce2.684.1Added+3
runs/Feb12_11-38-02_2cb2cefa7ce2/events.out.tfevents.1676201890.2cb2cefa7ce2.684.0Added+3
training_args.binAdded+3