Run this model with HF Jobs
Run Dans-DiscountModels/Dans-TextSplitter 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/Dans-DiscountModels/Dans-TextSplitter. 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/Dans-DiscountModels/Dans-TextSplitter 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/Dans-DiscountModels/Dans-TextSplitter. 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/Dans-DiscountModels/Dans-TextSplitter. 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 Dans-DiscountModels/Dans-TextSplitter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dans-DiscountModels/Dans-TextSplitter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dans-DiscountModels/Dans-TextSplitter")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Dans-DiscountModels/Dans-TextSplitter") model = AutoModelForCausalLM.from_pretrained("Dans-DiscountModels/Dans-TextSplitter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dans-DiscountModels/Dans-TextSplitter with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dans-DiscountModels/Dans-TextSplitter" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dans-DiscountModels/Dans-TextSplitter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Dans-DiscountModels/Dans-TextSplitter
- SGLang
How to use Dans-DiscountModels/Dans-TextSplitter 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 "Dans-DiscountModels/Dans-TextSplitter" \ --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": "Dans-DiscountModels/Dans-TextSplitter", "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 "Dans-DiscountModels/Dans-TextSplitter" \ --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": "Dans-DiscountModels/Dans-TextSplitter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Dans-DiscountModels/Dans-TextSplitter with Docker Model Runner:
docker model run hf.co/Dans-DiscountModels/Dans-TextSplitter
Delete README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168---license: otherbase_model: stabilityai/stablelm-2-1_6btags:- generated_from_trainermodel-index:- name: stablelm_1-6b_ContextSplitter 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. -->
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)<details><summary>See axolotl config</summary>
axolotl version: `0.4.0````yamlbase_model: stabilityai/stablelm-2-1_6bbase_model_config: stabilityai/stablelm-2-1_6bmodel_type: StableLMEpochForCausalLMtokenizer_type: AutoTokenizer
trust_remote_code: true
load_in_8bit: falseload_in_4bit: falsestrict: false
datasets: - path: /run/media/username/Storage/datasets/repo/alpaca/context-aware-splits-english_new.json type: alpaca
dataset_prepared_path: stablelm_1-6b_ContextSplitter_dataval_set_size: 0.02output_dir: ./stablelm_1-6b_ContextSplitter
sequence_len: 4096 sample_packing: truepad_to_sequence_len: true
adapter:lora_model_dir:lora_r:lora_alpha:lora_dropout:lora_target_linear:lora_fan_in_fan_out:
wandb_project: stablelm_1-6b_ContextSplitterwandb_entity:wandb_watch:wandb_name:wandb_log_model:
gradient_accumulation_steps: 1micro_batch_size: 1num_epochs: 1optimizer: paged_adamw_32bitlr_scheduler: cosinelearning_rate: 0.00001
train_on_inputs: falsegroup_by_length: falsebf16: true fp16: falsetf32: false
gradient_checkpointing: trueearly_stopping_patience:resume_from_checkpoint:local_rank:logging_steps: 1xformers_attention:flash_attention: trueflash_attn_cross_entropy: falseflash_attn_rms_norm: trueflash_attn_fuse_qkv: falseflash_attn_fuse_mlp: true
warmup_steps: 100evals_per_epoch: 30eval_table_size:saves_per_epoch: 4debug:deepspeed: #deepspeed_configs/zero2.json # multi-gpu onlyweight_decay: 0.1fsdp:fsdp_config:special_tokens:```
</details><br>
# stablelm_1-6b_ContextSplitter
This model is a fine-tuned version of [stabilityai/stablelm-2-1_6b](https://huggingface.co/stabilityai/stablelm-2-1_6b) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.0377
## 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: 1e-05- train_batch_size: 1- eval_batch_size: 1- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 100- num_epochs: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 0.1781 | 0.0 | 1 | 0.2283 || 0.0709 | 0.03 | 248 | 0.0589 || 0.0274 | 0.07 | 496 | 0.0512 || 0.0614 | 0.1 | 744 | 0.0480 || 0.0266 | 0.13 | 992 | 0.0466 || 0.0471 | 0.17 | 1240 | 0.0440 || 0.0425 | 0.2 | 1488 | 0.0435 || 0.1172 | 0.23 | 1736 | 0.0423 || 0.0322 | 0.27 | 1984 | 0.0415 || 0.0529 | 0.3 | 2232 | 0.0413 || 0.0296 | 0.33 | 2480 | 0.0409 || 0.0357 | 0.37 | 2728 | 0.0398 || 0.0242 | 0.4 | 2976 | 0.0394 || 0.0266 | 0.43 | 3224 | 0.0391 || 0.0292 | 0.47 | 3472 | 0.0386 || 0.0261 | 0.5 | 3720 | 0.0386 || 0.0382 | 0.53 | 3968 | 0.0383 || 0.0378 | 0.57 | 4216 | 0.0383 || 0.0345 | 0.6 | 4464 | 0.0379 || 0.0467 | 0.64 | 4712 | 0.0379 || 0.0542 | 0.67 | 4960 | 0.0378 || 0.0317 | 0.7 | 5208 | 0.0378 || 0.0363 | 0.74 | 5456 | 0.0377 || 0.054 | 0.77 | 5704 | 0.0377 || 0.0207 | 0.8 | 5952 | 0.0377 || 0.0302 | 0.84 | 6200 | 0.0377 || 0.0427 | 0.87 | 6448 | 0.0377 || 0.0278 | 0.9 | 6696 | 0.0377 || 0.0648 | 0.94 | 6944 | 0.0377 || 0.0497 | 0.97 | 7192 | 0.0377 |
### Framework versions
- Transformers 4.38.0.dev0- Pytorch 2.0.1+cu117- Datasets 2.15.0- Tokenizers 0.15.0README.mdDeleted-168