{"id":23114633,"url":"https://github.com/prithivsakthiur/stable-hamster","last_synced_at":"2025-08-16T21:31:35.428Z","repository":{"id":244338272,"uuid":"814957094","full_name":"PRITHIVSAKTHIUR/Stable-Hamster","owner":"PRITHIVSAKTHIUR","description":"Fast as Hamster | Stable Hamster | Stable Diffusion","archived":false,"fork":false,"pushed_at":"2024-08-26T06:51:14.000Z","size":13930,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T18:22:23.139Z","etag":null,"topics":["4k","bot","diffusion-models","fast","hamster","hdr","huggingface","huggingface-transformers","image","image-generation","modeling"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/prithivMLmods/STABLE-HAMSTER","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PRITHIVSAKTHIUR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T03:54:52.000Z","updated_at":"2025-03-29T15:45:56.000Z","dependencies_parsed_at":"2024-06-14T04:53:06.751Z","dependency_job_id":"96b26ce4-eb9b-432a-bee6-b53247f75c35","html_url":"https://github.com/PRITHIVSAKTHIUR/Stable-Hamster","commit_stats":null,"previous_names":["prithivsakthiur/stable-hamster"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PRITHIVSAKTHIUR/Stable-Hamster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FStable-Hamster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FStable-Hamster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FStable-Hamster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FStable-Hamster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PRITHIVSAKTHIUR","download_url":"https://codeload.github.com/PRITHIVSAKTHIUR/Stable-Hamster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FStable-Hamster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270775799,"owners_count":24642961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["4k","bot","diffusion-models","fast","hamster","hdr","huggingface","huggingface-transformers","image","image-generation","modeling"],"created_at":"2024-12-17T03:33:58.800Z","updated_at":"2025-08-16T21:31:34.543Z","avatar_url":"https://github.com/PRITHIVSAKTHIUR.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\r\ntitle: STABLE HAMSTER\r\nemoji: 🐹\r\ncolorFrom: blue\r\ncolorTo: pink\r\nsdk: gradio\r\nsdk_version: 4.36.1\r\napp_file: app.py\r\nbase_model: stabilityai/sdxl-turbo\r\nmodel: any\r\ntype: base_model, model\r\npinned: true\r\nheader: mini\r\ntheme: bethecloud/storj_theme\r\nget_hamster_from: https://prithivhamster.vercel.app/\r\nlicense: creativeml-openrail-m\r\nshort_description: Fast as Hamster | Stable Hamster | Stable Diffusion\r\n---\r\n\r\nCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference\r\n\r\n![alt text](assets/xy.gif)\r\n\r\nCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference\r\n\r\nSpaces: https://huggingface.co/spaces/prithivMLmods/STABLE-HAMSTER\r\n\r\nTake Clone : \r\n    \r\n    # Make sure you have git-lfs installed (https://git-lfs.com)\r\n    git lfs install\r\n    \r\n    git clone https://huggingface.co/spaces/prithivMLmods/STABLE-HAMSTER\r\n    \r\n    # If you want to clone without large files - just their pointers\r\n    \r\n    GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/spaces/prithivMLmods/STABLE-HAMSTER\r\n\r\n## Sample Images \r\n\r\n| ![Image 1](assets/1.png) | ![Image 2](assets/2.png) |\r\n|-------------------------|-------------------------|\r\n| ![Image 3](assets/3.png) | ![Image 4](assets/4.png) |\r\n\r\n## How it works\r\n![alt text](assets/rr.gif)\r\n\r\n\r\n## Libraries Overview_req\r\n\r\n| Library        | Library        | Library        |\r\n|----------------|----------------|----------------|\r\n| `diffusers`    | `pipeline`     | `sentencepiece`|\r\n| `torch`        | `transformers` | `spaces`       |\r\n| `gdown`        | `accelerate`   | `peft`         |\r\n| `torchvision`  | `safetensors`  | `gradio`       |\r\n| `pillow`       |                |                |\r\n\r\n\r\n\r\n![alt text](assets/ty.gif)\r\n\r\n## Compatibility\r\n\r\nZeroGPU Spaces should mostly be compatible with any PyTorch-based GPU Space.\r\nCompatibility with high level HF libraries like transformers or diffusers is slightly more guaranteed\r\nThat said, ZeroGPU Spaces are not as broadly compatible as classical GPU Spaces and you might still encounter unexpected bugs\r\n\r\nAlso, for now, ZeroGPU Spaces only works with the Gradio SDK\r\n\r\nSupported versions:\r\n\r\n    Gradio: 4+\r\n    PyTorch: All versions from 2.0.0 to 2.2.0\r\n    Python: 3.10.13\r\n\r\n## Usage\r\n\r\nIn order to make your Space work with ZeroGPU you need to decorate the Python functions that actually require a GPU with @spaces.GPU\r\nDuring the time when a decorated function is invoked, the Space will be attributed a GPU, and it will release it upon completion of the function.\r\nHere is a practical example :\r\n\r\n    +import spaces\r\n    from diffusers import DiffusionPipeline\r\n    \r\n    pipe = DiffusionPipeline.from_pretrained(...)\r\n    pipe.to('cuda')\r\n    \r\n    +@spaces.GPU\r\n    def generate(prompt):\r\n        return pipe(prompt).images\r\n    \r\n    gr.Interface(\r\n        fn=generate,\r\n        inputs=gr.Text(),\r\n        outputs=gr.Gallery(),\r\n    ).launch()\r\n\r\nWe first import spaces (importing it first might prevent some issues but is not mandatory)\r\nThen we decorate the generate function by adding a @spaces.GPU line before its definition\r\n\r\n## Duration\r\n\r\nIf you expect your GPU function to take more than 60s then you need to specify a duration param in the decorator like:\r\n    \r\n    @spaces.GPU(duration=120)\r\n    def generate(prompt):\r\n       return pipe(prompt).images\r\n\r\nIt will set the maximum duration of your function call to 120s.\r\n\r\nYou can also specify a duration if you know that your function will take far less than the 60s default.\r\n\r\nThe lower the duration, the higher priority your Space visitors will have in the queue\r\n\r\n\r\n.\r\n\r\n.\r\n\r\n.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprithivsakthiur%2Fstable-hamster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprithivsakthiur%2Fstable-hamster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprithivsakthiur%2Fstable-hamster/lists"}