I’ve been experimenting with and modifying an SDXL model by replacing both of its original text encoders with Qwen 0.5B. I always found the 77-token limit frustrating—it really takes the fun out of creating.
Using a smaller model like Qwen 0.5B might not match the original in terms of accuracy, but the trade-off is worth it: you can go beyond that 77-token limit, which opens up a lot more creative freedom.
import torch
from Q_pipeline import QPipeline
import os
MODEL_PATH = "model"
PROMPT = "portrait of a beautiful woman wearing a sundress at a lake, looking at camera, d & d, nice outfit, long hair, intricate, elegant, stylish, realistic"
NEGATIVE_PROMPT = "low quality, blurry"
OUTPUT_IMAGE_PATH = "1.png"
SEED = 42defmain():
ifnot torch.cuda.is_available():
raise RuntimeError("GPU is required.")
pipe = QPipeline.from_pretrained(
MODEL_PATH,
torch_dtype=torch.bfloat16,
device="cuda"
)
generator = torch.Generator(device="cuda").manual_seed(SEED)
result = pipe(
prompt=PROMPT,
negative_prompt=NEGATIVE_PROMPT,
num_inference_steps=40,
guidance_scale=7.5,
generator=generator,
width=1024,
height=1024,
)
result["images"][0].save(OUTPUT_IMAGE_PATH)
print(f"Saved to {OUTPUT_IMAGE_PATH}")
if __name__ == "__main__":
main()
Runs of kpsss34 QwXL-EXP-1 on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About QwXL-EXP-1 huggingface.co Model
QwXL-EXP-1 huggingface.co
QwXL-EXP-1 huggingface.co is an AI model on huggingface.co that provides QwXL-EXP-1's model effect (), which can be used instantly with this kpsss34 QwXL-EXP-1 model. huggingface.co supports a free trial of the QwXL-EXP-1 model, and also provides paid use of the QwXL-EXP-1. Support call QwXL-EXP-1 model through api, including Node.js, Python, http.
QwXL-EXP-1 huggingface.co is an online trial and call api platform, which integrates QwXL-EXP-1's modeling effects, including api services, and provides a free online trial of QwXL-EXP-1, you can try QwXL-EXP-1 online for free by clicking the link below.
kpsss34 QwXL-EXP-1 online free url in huggingface.co:
QwXL-EXP-1 is an open source model from GitHub that offers a free installation service, and any user can find QwXL-EXP-1 on GitHub to install. At the same time, huggingface.co provides the effect of QwXL-EXP-1 install, users can directly use QwXL-EXP-1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.