logging.getLogger("xformers").addFilter(lambdarecord:'A matching Triton is not available'notinrecord.getMessage())
importexecution
importserver
if__name__=="__main__":
if'--help'insys.argv:
print("Valid Command line Arguments:")
@ -18,6 +15,7 @@ if __name__ == "__main__":
print("\t--port 8188\t\t\tSet the listen port.")
print("\t--dont-upcast-attention\t\tDisable upcasting of attention \n\t\t\t\t\tcan boost speed but increase the chances of black images.\n")
print("\t--use-split-cross-attention\tUse the split cross attention optimization instead of the sub-quadratic one.\n\t\t\t\t\tIgnored when xformers is used.")