YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
BlenderLLM GGUF files
BlenderLLM convert to GGUF https://huggingface.co/FreedomIntelligence/BlenderLLM 3 files: FP16, Q4_K_M, and Q8.
Example prompt: "Let’s create a birthday cake with three layers. The bottom layer should be chocolate, the middle layer vanilla, and the top layer red velvet. Each layer should be separated by a thick layer of buttercream frosting. Add a decorative border of frosting around the top edge, and place colorful sprinkles all over the surface. Finally, add a Happy Birthday message on top."
Result (code):
import bpy
#Step 1: Clear the Scene
bpy.ops.object.select_all(action='DESELECT')
bpy.ops.object.select_by_type(type='MESH')
bpy.ops.object.delete()
#Define the colors
chocolate = bpy.data.materials.new(name="Chocolate")
chocolate.diffuse_color = (0.24, 0.15, 0.10, 1) # Chocolate color
vanilla = bpy.data.materials.new(name="Vanilla")
vanilla.diffuse_color = (1.0, 0.98, 0.90, 1) # Vanilla color
red_velvet = bpy.data.materials.new(name="Red Velvet")
red_velvet.diffuse_color = (0.8, 0.1, 0.1, 1) # Red velvet color
buttercream = bpy.data.materials.new(name="Buttercream")
buttercream.diffuse_color = (1.0, 0.95, 0.87, 1) # Buttercream color
#Step 2: Create the Bottom Layer (Chocolate)
bpy.ops.mesh.primitive_cylinder_add(radius=1.5, depth=0.5, location=(0, 0, 0))
bottom_layer = bpy.context.object
bottom_layer.name = "Bottom Layer"
bottom_layer.data.materials.append(chocolate)
#Step 3: Create the Middle Layer (Vanilla)
bpy.ops.mesh.primitive_cylinder_add(radius=1.2, depth=0.4, location=(0, 0, 0.5))
middle_layer = bpy.context.object
middle_layer.name = "Middle Layer"
middle_layer.data.materials.append(vanilla)
#Step 4: Create the Top Layer (Red Velvet)
by.ops.mesh.primitive_cylinder_add(radius=0.9, depth=0.3, location=(0, 0, 0.9))
top_layer = bpy.context.object
top_layer.name = "Top Layer"
top_layer.data.materials.append(red_velvet)
#Step 5: Create the Buttercream Frosting Layers
for i in range(2):
bpy.ops.mesh.primitive_cylinder_add(radius=1.5 - 0.3 * i, depth=0.1, location=(0, 0, 0.3 + 0.4 * i))
frosting_layer = bpy.context.object
frosting_layer.name = f"Frosting Layer {i + 1}"
frosting_layer.data.materials.append(buttercream)
#Step 6: Create the Decorative Border on Top
bpy.ops.mesh.primitive_torus_add(major_radius=0.9, minor_radius=0.1, location=(0, 0, 1.2))
decorative_border = bpy.context.object
decorative_border.name = "Decorative Border"
decorative_border.data.materials.append(buttercream)
#Step 7: Add Sprinkles (Simplified as small spheres for demonstration)
import random
colors = [(1, 0, 0, 1), (0, 1, 0, 1), (0, 0, 1, 1), (1, 1, 0, 1)]
for _ in range(50):
x = random.uniform(-0.9, 0.9)
y = random.uniform(-0.9, 0.9)
z = 1.2
bpy.ops.mesh.primitive_uv_sphere_add(radius=0.03, location=(x, y, z))
sprinkle = bpy.context.object
sprinkle.name = "Sprinkle"
color = bpy.data.materials.new(name="Sprinkle Color")
color.diffuse_color = random.choice(colors)
sprinkle.data.materials.append(color)
#Step 8: Add Text (Happy Birthday)
bpy.ops.object.text_add(location=(0, 0, 1.5))
text = bpy.context.object
text.name = "Happy Birthday Text"
text.data.body = "Happy Birthday"
text.data.align_x = 'CENTER'
text.data.size = 0.2
text.rotation_euler = (0, 0, math.pi/2)
text.location = (0, -1.5, 1.5)
#Convert text to mesh and apply material
bpy.ops.object.convert(target='MESH')
text_material = bpy.data.materials.new(name="Text Material")
text_material.diffuse_color = (1, 1, 1, 1) # White color for text
text.data.materials.append(text_material)
license: apache-2.0
- Downloads last month
- 46
Hardware compatibility
Log In
to view the estimation
4-bit
8-bit
16-bit
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support
