You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey thanks! I took a look, and am still having an issue (that said, it is a different error than what I had before, but I unfortunately didn't write that one down). Unsure if this is colab-specific or not, lmk if I should reopen this or make a new issue.
==((====))== Unsloth: Fast Llama patching release 2023.12
\\ /| GPU: Tesla T4. Max memory: 14.748 GB
O^O/ \_/ \ CUDA compute capability = 7.5
\ / Pytorch version: 2.1.0+cu118. CUDA Toolkit = 11.8
"-____-" bfloat16 support = FALSE
Loading checkpoint shards: 100%
5/5 [01:03<00:00, 10.67s/it]
error message
this is after trying to run the sft trainer
wandb: Currentlyloggedinas: pszemraj. Use`wandb login --relogin`toforcereloginTrackingrunwithwandbversion0.16.1Rundataissavedlocallyin/content/wandb/run-20231206_001547-47uo1ewkSyncingrununsloth-llama7b-knowledge-inoc-yt-audio-default-21e8toWeights&Biases (docs)
Viewprojectathttps://wandb.ai/pszemraj/sloth-me-maybeViewrunathttps://wandb.ai/pszemraj/sloth-me-maybe/runs/47uo1ewkYou'reusingaLlamaTokenizerFasttokenizer. Pleasenotethatwithafasttokenizer, usingthe`__call__`methodisfasterthanusingamethodtoencodethetextfollowedbyacalltothe`pad`methodtogetapaddedencoding.
`use_cache=True`isincompatiblewithgradientcheckpointing. Setting`use_cache=False`...
---------------------------------------------------------------------------RuntimeErrorTraceback (mostrecentcalllast)
<ipython-input-12-3d62c575fcfd>in<cellline: 1>()
---->1trainer_stats=trainer.train()
9frames/usr/local/lib/python3.10/dist-packages/trl/trainer/sft_trainer.pyintrain(self, *args, **kwargs)
278self.model=self._trl_activate_neftune(self.model)
279-->280output=super().train(*args, **kwargs)
281282# After training we make sure to retrieve back the original forward pass method/usr/local/lib/python3.10/dist-packages/transformers/trainer.pyintrain(self, resume_from_checkpoint, trial, ignore_keys_for_eval, **kwargs)
1544# Disable progress bars when uploading models during checkpoints to avoid polluting stdout1545hf_hub_utils.disable_progress_bars()
->1546returninner_training_loop(
1547args=args,
1548resume_from_checkpoint=resume_from_checkpoint,
/usr/local/lib/python3.10/dist-packages/transformers/trainer.pyin_inner_training_loop(self, batch_size, args, resume_from_checkpoint, trial, ignore_keys_for_eval)
18581859withself.accelerator.accumulate(model):
->1860tr_loss_step=self.training_step(model, inputs)
18611862if (
/usr/local/lib/python3.10/dist-packages/transformers/trainer.pyintraining_step(self, model, inputs)
2732scaled_loss.backward()
2733else:
->2734self.accelerator.backward(loss)
27352736returnloss.detach() /self.args.gradient_accumulation_steps/usr/local/lib/python3.10/dist-packages/accelerate/accelerator.pyinbackward(self, loss, **kwargs)
1901return1902elifself.scalerisnotNone:
->1903self.scaler.scale(loss).backward(**kwargs)
1904else:
1905loss.backward(**kwargs)
/usr/local/lib/python3.10/dist-packages/torch/_tensor.pyinbackward(self, gradient, retain_graph, create_graph, inputs)
490inputs=inputs,
491 )
-->492torch.autograd.backward(
493self, gradient, retain_graph, create_graph, inputs=inputs494 )
/usr/local/lib/python3.10/dist-packages/torch/autograd/__init__.pyinbackward(tensors, grad_tensors, retain_graph, create_graph, grad_variables, inputs)
249# some Python versions print out the first line of a multi-line function250# calls in the traceback and some print out the last line-->251Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass252tensors,
253grad_tensors_,
/usr/local/lib/python3.10/dist-packages/torch/autograd/function.pyinapply(self, *args)
286 )
287user_fn=vjp_fnifvjp_fnisnotFunction.vjpelsebackward_fn-->288returnuser_fn(self, *args)
289290defapply_jvp(self, *args):
/usr/local/lib/python3.10/dist-packages/torch/utils/checkpoint.pyinbackward(ctx, *args)
286" this checkpoint() is not necessary"287 )
-->288torch.autograd.backward(outputs_with_grad, args_with_grad)
289grads=tuple(
290inp.gradifisinstance(inp, torch.Tensor) elseNone/usr/local/lib/python3.10/dist-packages/torch/autograd/__init__.pyinbackward(tensors, grad_tensors, retain_graph, create_graph, grad_variables, inputs)
249# some Python versions print out the first line of a multi-line function250# calls in the traceback and some print out the last line-->251Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass252tensors,
253grad_tensors_,
RuntimeError: Expectedis_sm80||is_sm90tobetrue, butgotfalse. (Couldthiserrormessagebeimproved? Ifso, pleasereportanenhancementrequesttoPyTorch.)
Activity
pszemraj commentedon Dec 3, 2023
seconding this, would be awesome to see support for https://huggingface.co/chargoddard/Yi-6B-200K-Llama for example!
danielhanchen commentedon Dec 3, 2023
Working on it!!!
danielhanchen commentedon Dec 5, 2023
@pszemraj Possibly made it work with Yi and maybe the one you mentioned - would be awesome if you could check!!
pszemraj commentedon Dec 6, 2023
Hey thanks! I took a look, and am still having an issue (that said, it is a different error than what I had before, but I unfortunately didn't write that one down). Unsure if this is colab-specific or not, lmk if I should reopen this or make a new issue.
version/install
error message
this is after trying to run the sft trainer
replication
I put a sharded checkpoint on the hub to make it easier for colab testing :) should just be able to drop in https://huggingface.co/pszemraj/Yi-6B-200K-Llama-sharded into your colab demo to replicate
Merge pull request unslothai#8 from oKatanaaa/fix
Merge pull request unslothai#8 from oKatanaaa/fix
Merge pull request unslothai#8 from unslothai/feature/frontendui-expo…
fix(mlx): restore FastVisionModel as a distinct class
fix(mlx): restore FastVisionModel as a distinct class
feat(studio): MLX training tab on Apple Silicon (LoRA / full FT, VLM,…
CI(consolidated): fix spoof recursion + per-step continue-on-error + …
ci: address 10x reviewer findings on dep removal safety check
ci: deterministic check for studio/frontend dep removals (#5478)
Fix/adjust diffusion: round 9 shared release helpers + export-active …
Fix/adjust diffusion: round 18 P1+P2 batch for PR #5754
Fix/adjust diffusion: round 19 P1+P2 batch for PR #5754
Fix/adjust diffusion: round 24 P1 batch for PR #5754
Fix/adjust diffusion: round 31 P1 batch for PR #5754
Fix/adjust diffusion: round 33 P1 batch for PR #5754