Text Generation
PEFT
Safetensors
Transformers
qwen3
axolotl
lora
conversational
text-generation-inference
Run this model with HF Jobs
Run paulvision/medscript-dora-summariser 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/paulvision/medscript-dora-summariser. 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/paulvision/medscript-dora-summariser 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/paulvision/medscript-dora-summariser. 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/paulvision/medscript-dora-summariser. 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 paulvision/medscript-dora-summariser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use paulvision/medscript-dora-summariser with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B") model = PeftModel.from_pretrained(base_model, "paulvision/medscript-dora-summariser") - Transformers
How to use paulvision/medscript-dora-summariser with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="paulvision/medscript-dora-summariser") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("paulvision/medscript-dora-summariser") model = AutoModelForCausalLM.from_pretrained("paulvision/medscript-dora-summariser", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use paulvision/medscript-dora-summariser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "paulvision/medscript-dora-summariser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "paulvision/medscript-dora-summariser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/paulvision/medscript-dora-summariser
- SGLang
How to use paulvision/medscript-dora-summariser 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 "paulvision/medscript-dora-summariser" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "paulvision/medscript-dora-summariser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "paulvision/medscript-dora-summariser" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "paulvision/medscript-dora-summariser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use paulvision/medscript-dora-summariser with Docker Model Runner:
docker model run hf.co/paulvision/medscript-dora-summariser
End of training
Browse files22 unmodified lines232425262728293031323334353637383933404142434445464748495051525345545547484950515253565758596061626364656667686970715960616263646572737475767778796768697071727380818283848586878889909192939495969798991007980811011021031041051061071081091101111121131148889115116117118119120121122123124125126981271281291301311321331341351361011371381393 unmodified lines14314414511111211311411514614714814915015115215313 unmodified lines16716816913513617017117213817317417517617714217817918018118218314814918418518618718818919019122 unmodified lines
axolotl version: `0.18.0````yaml# MedScript AI β SFT Stage: summariser adapter# DoRA + LoRA+ | Axolotl | A100 SXM 80GB# torch_compile REMOVED β incompatible with DoRA (PEFT upstream bug)
base_model: Qwen/Qwen3-8Bmodel_type: AutoModelForCausalLMtokenizer_type: AutoTokenizer
bf16: truefp16: false
flash_attention: true
plugins:- axolotl.integrations.liger.LigerPlugin - axolotl.integrations.liger.LigerPluginliger_rms_norm: trueliger_rope: trueliger_glu_activation: trueliger_fused_linear_cross_entropy: true
chat_template: qwen3
adapter: loralora_r: 16lora_alpha: 32lora_dropout: 0.0use_dora: trueloraplus_lr_ratio: 16.0loraplus_lr_embedding: 1.0e-06loraplus_lr_embedding: 1.0e-6lora_target_modules:- q_proj- k_proj- v_proj- o_proj- gate_proj- up_proj- down_proj - q_proj - k_proj - v_proj - o_proj - gate_proj - up_proj - down_proj
gradient_checkpointing: truegradient_checkpointing_kwargs: use_reentrant: false
# top-level key: nested under a dataset entry it is silently ignoredtrain_on_inputs: false
datasets:- path: paulvision/medscript-sft-summariser split: train type: chat_template chat_template: qwen3 field_messages: messages roles_to_train: - assistant - path: paulvision/medscript-sft-summariser split: train type: chat_template chat_template: qwen3 field_messages: messages roles_to_train: [assistant]
test_datasets:- path: paulvision/medscript-sft-summariser split: validation type: chat_template chat_template: qwen3 field_messages: messages roles_to_train: - assistant - path: paulvision/medscript-sft-summariser split: validation type: chat_template chat_template: qwen3 field_messages: messages # must match the train split's masking, otherwise eval_loss is computed over # prompt+response while train loss is response-only β and load_best_model_at_end # then selects checkpoints on a metric that is not the training objective. roles_to_train: [assistant]
sequence_len: 1024sample_packing: truepad_to_sequence_len: trueeval_sample_packing: false
num_train_epochs: 3# Measured on H100 80GB, 10 steps of sft_summariser, effective batch 32 throughout:# micro_batch 8 / accum 4 -> 27.7 GiB, ~4.3 s/step, eval_loss 0.4104# micro_batch 16 / accum 2 -> 39.4 GiB, ~3.9 s/step, eval_loss 0.4101# ~10% faster for 42% more VRAM and identical loss. Not 2x: at 90%+ SM utilisation# this is compute-bound, so a bigger batch mostly amortises per-step overhead.micro_batch_size: 8gradient_accumulation_steps: 4learning_rate: 0.0002micro_batch_size: 16gradient_accumulation_steps: 2learning_rate: 2.0e-4lr_scheduler: cosinewarmup_ratio: 0.05weight_decay: 0.01max_grad_norm: 1.0optimizer: adamw_torch_fusedseed: 42
# ~897 steps (3 ep) -> 9 eval points. At eval_steps 200 this track got no intermediate eval or checkpoint# at all, so load_best_model_at_end had nothing to choose from and the run# produced no eval curve β which is the one artifact the whole exercise is for.# save_steps must stay equal to eval_steps for load_best_model_at_end.eval_steps: 200save_steps: 200eval_steps: 100save_steps: 100save_total_limit: 3load_best_model_at_end: truemetric_for_best_model: eval_loss
logging_steps: 10wandb_project: medscript-aiwandb_name: sft-summariser
hub_model_id: paulvision/medscript-dora-summariserhub_strategy: every_savepush_to_hub: falsepush_to_hub: true
output_dir: ./checkpoints/sft/summariser
# Tokenisation/packing is single-process by default: measured at 100% of ONE core on a# 256-core box, 14 min for 17.5k rows and on track for ~an hour on discharge's 78k β# all of it with the GPU sitting at 0%.dataset_processes: 32
dataset_prepared_path: ./prepared/sft_summarisermax_steps: 10
```
3 unmodified lines
This model is a fine-tuned version of [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B) on the paulvision/medscript-sft-summariser dataset.It achieves the following results on the evaluation set:- Loss: 0.4104- Ppl: 1.5074- Memory/max Active (gib): 27.46- Memory/max Allocated (gib): 27.46- Memory/device Reserved (gib): 27.71- Loss: 0.3606- Ppl: 1.4342- Memory/max Active (gib): 39.12- Memory/max Allocated (gib): 39.12- Memory/device Reserved (gib): 39.43
## Model description
13 unmodified lines
The following hyperparameters were used during training:- learning_rate: 0.0002- train_batch_size: 8- eval_batch_size: 8- train_batch_size: 16- eval_batch_size: 16- seed: 42- gradient_accumulation_steps: 4- gradient_accumulation_steps: 2- total_train_batch_size: 32- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 16- training_steps: 10- training_steps: 328
### Training results
| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) ||:-------------:|:------:|:----:|:---------------:|:------:|:------------:|:---------------:|:--------------:|| No log | 0 | 0 | 1.4770 | 4.3798 | 27.1 | 27.1 | 27.18 || 0.5294 | 0.0303 | 10 | 0.4104 | 1.5074 | 27.46 | 27.46 | 27.71 || No log | 0 | 0 | 1.4740 | 4.3666 | 38.76 | 38.76 | 38.9 || 0.3937 | 0.3049 | 100 | 0.3797 | 1.4619 | 39.12 | 39.12 | 39.43 || 0.3665 | 0.6098 | 200 | 0.3698 | 1.4475 | 39.12 | 39.12 | 39.43 || 0.3545 | 0.9146 | 300 | 0.3607 | 1.4343 | 39.12 | 39.12 | 39.43 || 0.3559 | 1.0 | 328 | 0.3606 | 1.4342 | 39.12 | 39.12 | 39.43 |
### Framework versions1281 unmodified lines128212831284128512851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571281 unmodified lines
100%|ββββββββββ| 121/121 [01:13<00:00, 1.55it/s][A
[A[2026-08-20 06:04:06,714] [INFO] [axolotl.core.trainers.base._save:928] [PID:6541] Saving model checkpoint to ./checkpoints/sft/summariser/checkpoint-328
{'train_runtime': '1495', 'train_samples_per_second': '7.022', 'train_steps_per_second': '0.219', 'train_loss': '0.3826', 'memory/max_active (GiB)': '15.81', 'memory/max_allocated (GiB)': '15.81', 'memory/device_reserved (GiB)': '39.27', 'epoch': '1'}
100%|ββββββββββ| 328/328 [24:51<00:00, 3.17s/it]
100%|ββββββββββ| 328/328 [24:51<00:00, 4.55s/it]
100%|ββββββββββ| 328/328 [24:51<00:00, 3.17s/it]
100%|ββββββββββ| 328/328 [24:51<00:00, 4.55s/it][2026-08-20 06:04:17,685] [INFO] [axolotl.train.save_trained_model:267] [PID:6541] Training completed! Saving trained model to ./checkpoints/sft/summariser.[2026-08-20 06:04:18,219] [INFO] [axolotl.train.save_trained_model:412] [PID:6541] Model successfully saved to ./checkpoints/sft/summariser[2026-08-20 06:04:18,302] [INFO] [axolotl.core.trainers.base._save:928] [PID:6541] Saving model checkpoint to ./checkpoints/sft/summariser
Processing Files (0 / 0) : | | 0.00B / 0.00B
New Data Upload : | | 0.00B / 0.00B [A
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 64%|βββββββ | 112MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 64%|βββββββ | 112MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
Processing Files (2 / 3) : 66%|βββββββ | 123MB / 186MB, ???B/s
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 100%|ββββββββββ| 175MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
Processing Files (3 / 3) : 100%|ββββββββββ| 186MB / 186MB, 314MB/s
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 100%|ββββββββββ| 175MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 100%|ββββββββββ| 175MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 100%|ββββββββββ| 175MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB [A[A
...adapter_model.safetensors: 100%|ββββββββββ| 175MB / 175MB [A[A[A
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB [A[A[A[A
Processing Files (3 / 3) : 100%|ββββββββββ| 186MB / 186MB, 78.4MB/s
New Data Upload : | | 0.00B / 0.00B, 0.00B/s
...mariser/training_args.bin: 100%|ββββββββββ| 13.3kB / 13.3kB
...adapter_model.safetensors: 100%|ββββββββββ| 175MB / 175MB
...summariser/tokenizer.json: 100%|ββββββββββ| 11.4MB / 11.4MB README.md+80-41
debug.log+73-1