Downloads · 30 days
19
8% of all-time downloads
0labs-in/Sky-7B
Sky-7B is a text generation model from 0labs-in. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Made By 0labs. Founder: Atharvsinh Jadav, Gujarat, India.
Downloads · 30 days
19
8% of all-time downloads
All-time downloads
232
Public
Parameters
21.2B
133 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors42.4 GB · 100%
From the Hugging Face model README
Made By 0labs. Founder: Atharvsinh Jadav, Gujarat, India.
Standalone merged model. This repository contains the base weights, SORE retrofit, CHRONOS state buffers, and merged LoRA SFT weights. It does not require a separate PEFT adapter or local baseline model folder.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo_id = "0labs-in/Sky-7B"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [{"role": "user", "content": "hi"}]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
return_dict=True,
).to(model.device)
out = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))