PEFT
TensorBoard
Safetensors
gemma
trl
sft
unsloth
Generated from Trainer
4-bit precision
bitsandbytes
Instructions to use deepakdevfocaloid/outputs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use deepakdevfocaloid/outputs with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-7b-bnb-4bit") model = PeftModel.from_pretrained(base_model, "deepakdevfocaloid/outputs") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use deepakdevfocaloid/outputs with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for deepakdevfocaloid/outputs to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for deepakdevfocaloid/outputs to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for deepakdevfocaloid/outputs to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="deepakdevfocaloid/outputs", max_seq_length=2048, )
| { | |
| "_name_or_path": "unsloth/gemma-7b-bnb-4bit", | |
| "architectures": [ | |
| "GemmaForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 2, | |
| "eos_token_id": 1, | |
| "head_dim": 256, | |
| "hidden_act": "gelu", | |
| "hidden_size": 3072, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 24576, | |
| "max_position_embeddings": 8192, | |
| "model_type": "gemma", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 16, | |
| "pad_token_id": 0, | |
| "quantization_config": { | |
| "bnb_4bit_compute_dtype": "float16", | |
| "bnb_4bit_quant_type": "nf4", | |
| "bnb_4bit_use_double_quant": true, | |
| "llm_int8_enable_fp32_cpu_offload": false, | |
| "llm_int8_has_fp16_weight": false, | |
| "llm_int8_skip_modules": null, | |
| "llm_int8_threshold": 6.0, | |
| "load_in_4bit": true, | |
| "load_in_8bit": false, | |
| "quant_method": "bitsandbytes" | |
| }, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.38.2", | |
| "unsloth_version": "2024.4", | |
| "use_cache": true, | |
| "vocab_size": 256000 | |
| } | |