Downloads · 30 days
13
19% of all-time downloads
broadfield-dev/codegemma-7b-it-8L-2048h-sliced-healed
codegemma-7b-it-8L-2048h-sliced-healed is a machine learning model from broadfield-dev. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model is a Reforged version of broadfield-dev/codegemma-7b-it-8L-2048h-sliced, created using Tensor-Centric Model Reforging.
Downloads · 30 days
13
19% of all-time downloads
All-time downloads
67
Public
Parameters
1.5B
17.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.9 GB · 99%
From the Hugging Face model README
This model is a Reforged version of broadfield-dev/codegemma-7b-it-8L-2048h-sliced, created using Tensor-Centric Model Reforging.
The architecture has been reduced and "Healed" to create a compact, efficient model that retains subspace consistency.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "broadfield-dev/codegemma-7b-it-8L-2048h-sliced-healed"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
input_text = "Explain the theory of relativity."
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids, max_new_tokens=50)
print(tokenizer.decode(outputs[0]))