from tensorrt_llm import LLM
llm = LLM(model="./trt_engine")
prompts = ["Hello, how are you?"]
outputs = llm.generate(prompts, max_new_tokens=512)
for output in outputs:
print(output.text)
Modular MAX
# Serve with MAX Engine
max serve Daemontatox/Cascade-Droidz \
--port 8000 \
--tensor-parallel-size 4
frommaximport engine
# Load model with MAX
model = engine.InferenceSession(
"Daemontatox/Cascade-Droidz",
device="cuda",
tensor_parallel=4
)
# Run inference
prompt = "Hello, how are you?"
output = model.generate(
prompt,
max_tokens=512,
temperature=0.7,
top_p=0.9
)
print(output.text)
# Using MAX with Python APIfrommax.serve import serve
frommax.pipelines import pipeline
# Create pipeline
pipe = pipeline(
"text-generation",
model="Daemontatox/Cascade-Droidz",
device="cuda",
tensor_parallel=4
)
# Generate
result = pipe(
"Hello, how are you?",
max_new_tokens=512,
temperature=0.7,
top_p=0.9
)
print(result[0]["generated_text"])
Limitations
As this uses experimental training methods, results may vary. Test thoroughly before production use.
```
Runs of Daemontatox Cascade-Droidz on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-4
30-day runs
More Information About Cascade-Droidz huggingface.co Model
Cascade-Droidz huggingface.co is an AI model on huggingface.co that provides Cascade-Droidz's model effect (), which can be used instantly with this Daemontatox Cascade-Droidz model. huggingface.co supports a free trial of the Cascade-Droidz model, and also provides paid use of the Cascade-Droidz. Support call Cascade-Droidz model through api, including Node.js, Python, http.
Cascade-Droidz huggingface.co is an online trial and call api platform, which integrates Cascade-Droidz's modeling effects, including api services, and provides a free online trial of Cascade-Droidz, you can try Cascade-Droidz online for free by clicking the link below.
Daemontatox Cascade-Droidz online free url in huggingface.co:
Cascade-Droidz is an open source model from GitHub that offers a free installation service, and any user can find Cascade-Droidz on GitHub to install. At the same time, huggingface.co provides the effect of Cascade-Droidz install, users can directly use Cascade-Droidz installed effect in huggingface.co for debugging and trial. It also supports api for free installation.