Run this model with HF Jobs
Run Xenova/tiny-random-Starcoder2ForCausalLM 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 to fine-tune https://huggingface.co/Xenova/tiny-random-Starcoder2ForCausalLM. 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/Xenova/tiny-random-Starcoder2ForCausalLM 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/Xenova/tiny-random-Starcoder2ForCausalLM. 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.
Instructions to use Xenova/tiny-random-Starcoder2ForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/tiny-random-Starcoder2ForCausalLM with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'Xenova/tiny-random-Starcoder2ForCausalLM');
Add/update the quantized ONNX model files and README.md for Transformers.js v3
#1
by whitphx - opened
Files changed (8)
- README.md+16
- onnx/model.onnxAdded+3
- onnx/model_bnb4.onnxAdded+3
- onnx/model_fp16.onnxAdded+3
- onnx/model_int8.onnxAdded+3
- onnx/model_q4.onnxAdded+3
- onnx/model_q4f16.onnxAdded+3
- onnx/model_uint8.onnxAdded+3
4 unmodified lines567891011121314151617181920212223244 unmodified lines
https://huggingface.co/hf-internal-testing/tiny-random-Starcoder2ForCausalLM with ONNX weights to be compatible with Transformers.js.
## Usage (Transformers.js)
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:```bashnpm i @huggingface/transformers```
**Example:** Text generation.
```jsimport { pipeline } from '@huggingface/transformers';
const generator = await pipeline('text-generation', 'Xenova/tiny-random-Starcoder2ForCausalLM');const output = await generator('Once upon a time, there was', { max_new_tokens: 10 });```
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).123version https://git-lfs.github.com/spec/v1oid sha256:75d5ed8d790b92205311b6015faf8d3ebc929f27e4be25234e1d8491ddab1c4fsize 308904123version https://git-lfs.github.com/spec/v1oid sha256:8ff9a1d33653afce52b35bb3636fe224b2ba304467d04c642a9088824cafafbasize 239050123version https://git-lfs.github.com/spec/v1oid sha256:f0cccfcf2f53a96d2e3df397042d65a36f6d8cc1e8d1a08ce488d364ee8f4370size 172448123version https://git-lfs.github.com/spec/v1oid sha256:8a8a63697b60513d3facf96e732f88931036991e98205ef263335ca39526f8e3size 157407123version https://git-lfs.github.com/spec/v1oid sha256:22d063b5d397de0790d10010cea770d7304024ee83a2f4ae5f6a34c64096b656size 240722123version https://git-lfs.github.com/spec/v1oid sha256:7afab5f261a3a1ec0ab425e997b384138eee95b28181408ec0d1fc110d5ea1d5size 159495123version https://git-lfs.github.com/spec/v1oid sha256:cee4e4af160699ee4fe07eee8b4c743bf32bfd3833a960f6d3b2fc609dd0966fsize 157413README.md+16
onnx/model.onnxAdded+3
onnx/model_bnb4.onnxAdded+3
onnx/model_fp16.onnxAdded+3
onnx/model_int8.onnxAdded+3
onnx/model_q4.onnxAdded+3
onnx/model_q4f16.onnxAdded+3
onnx/model_uint8.onnxAdded+3