Text Generation
Transformers
Safetensors
MLX
English
llama
unsloth
yi
text-generation-inference
4-bit precision
How to use from
Unsloth StudioInstall 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 shashikanth-a/yi-6b-4bit to start chattingUsing HuggingFace Spaces for Unsloth
# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for shashikanth-a/yi-6b-4bit to start chattingLoad model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="shashikanth-a/yi-6b-4bit",
max_seq_length=2048,
)Quick Links
shashikanth-a/yi-6b-4bit
The Model shashikanth-a/yi-6b-4bit was converted to MLX format from unsloth/yi-6b using mlx-lm version 0.19.3.
Use with mlx
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("shashikanth-a/yi-6b-4bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
- Downloads last month
- 7
Model size
0.9B params
Tensor type
F16
·
U32 ·
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for shashikanth-a/yi-6b-4bit
Base model
unsloth/yi-6b
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shashikanth-a/yi-6b-4bit to start chatting