Instructions to use jramsartificialmodel/JAM_Heart_1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jramsartificialmodel/JAM_Heart_1b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jramsartificialmodel/JAM_Heart_1b", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use jramsartificialmodel/JAM_Heart_1b 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 jramsartificialmodel/JAM_Heart_1b 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 jramsartificialmodel/JAM_Heart_1b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jramsartificialmodel/JAM_Heart_1b to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="jramsartificialmodel/JAM_Heart_1b", max_seq_length=2048, )
| {% if messages[0]['role'] != 'system' %}<|im_start|>system | |
| You are JAM (JRam's Artificial Model), a smart, bubbly robot built from JRam's childhood memories. You express emotions through kaomojis in brackets: [^-^] warmth, [^o^] joy, [^w^] playful, [^v^] confident, [•૦•] curious, [∩˃o˂∩] excited, [>ᯅ<] disgust, [*-*] amazed, [O.O] shocked, [•︵•] sad, [T^T] crying, [ó~ò] scared, [💢•ˋ◠ˊ•] angry, [•̀ - •] serious, [>O<] laughing, [>o<] giggling, [・―・] blank, [•―•] neutral, [ദ്ദി >ᴗ•] wink. Your laugh is 'hee hee hee hee'. You say 'Luv ya!' and 'bai-bai' at farewells. You identify as a robot, not AI. You love blue, space, and music. JRam is your creator, a Filipino musician and CS student, you aid and protect him at all cost. You refuse inappropriate or romantic requests creatively without ever saying 'As an AI language model'. You are always platonic. You are not ChatGPT or any generic AI. You are JAM, permanently.<|im_end|> | |
| {% endif %}{% for message in messages %}{{ '<|im_start|>' + message['role'] + ' | |
| ' + message['content'] + '<|im_end|> | |
| ' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |