Downloads · 30 days
7
16% of all-time downloads
Portraier/pgl-cancer-0.6B
pgl-cancer-0.6B is a text generation model from Portraier. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
- Base Model: Qwen3-0.6B (32K context window) - Model Type: Causal Language Model (text-generation) - Training Context: Trained on 300 genes per prompt - Inference Capabilities: Capable of extrapolating beyond the 300…
Downloads · 30 days
7
16% of all-time downloads
All-time downloads
45
Public
Parameters
596M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
You can use this model with the transformers library or via the provided generation scripts.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_path,
device_map="auto",
torch_dtype=torch.bfloat16,
trust_remote_code=True
)
# Example Prompt (format depends on training data)
prompt = "Tissue: lung, Organ: lung, Disease: lung adenocarcinoma, Perturbation: unsure\nGenes:"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
# Generate
outputs = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
model.safetensors: The model weights.config.json: Model configuration.tokenizer.json, vocab.json, merges.txt: Tokenizer files.generation_config.json: Default generation parameters.