Instructions to use MKarakose/model_64_128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MKarakose/model_64_128 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MKarakose/model_64_128")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MKarakose/model_64_128") model = AutoModelForCausalLM.from_pretrained("MKarakose/model_64_128", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use MKarakose/model_64_128 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 MKarakose/model_64_128 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 MKarakose/model_64_128 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MKarakose/model_64_128 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="MKarakose/model_64_128", max_seq_length=2048, )
| { | |
| "_name_or_path": "unsloth/gemma-2b-it-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_activation": null, | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 16384, | |
| "max_position_embeddings": 8192, | |
| "model_type": "gemma", | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 18, | |
| "num_key_value_heads": 1, | |
| "pad_token_id": 0, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.40.1", | |
| "unsloth_version": "2024.4", | |
| "use_cache": true, | |
| "vocab_size": 256000 | |
| } | |