{"id":23636413,"url":"https://github.com/prithivsakthiur/codepy-deepthink-3b","last_synced_at":"2025-11-09T03:30:36.394Z","repository":{"id":270056049,"uuid":"909211849","full_name":"PRITHIVSAKTHIUR/Codepy-Deepthink-3B","owner":"PRITHIVSAKTHIUR","description":"step-by-step solutions, creative content, and logical analyses","archived":false,"fork":false,"pushed_at":"2024-12-28T03:26:19.000Z","size":2991,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T05:09:09.320Z","etag":null,"topics":["codepy","coder","cot","deep-learning","deep-think","llama","lmstudio","ollama","reasoning"],"latest_commit_sha":null,"homepage":"https://huggingface.co/prithivMLmods/Codepy-Deepthink-3B","language":null,"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-12-28T03:21:33.000Z","updated_at":"2024-12-28T03:26:23.000Z","dependencies_parsed_at":"2024-12-28T04:35:50.013Z","dependency_job_id":null,"html_url":"https://github.com/PRITHIVSAKTHIUR/Codepy-Deepthink-3B","commit_stats":null,"previous_names":["prithivsakthiur/codepy-deepthink-3b"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FCodepy-Deepthink-3B","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FCodepy-Deepthink-3B/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FCodepy-Deepthink-3B/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRITHIVSAKTHIUR%2FCodepy-Deepthink-3B/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PRITHIVSAKTHIUR","download_url":"https://codeload.github.com/PRITHIVSAKTHIUR/Codepy-Deepthink-3B/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565605,"owners_count":19660159,"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","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":["codepy","coder","cot","deep-learning","deep-think","llama","lmstudio","ollama","reasoning"],"created_at":"2024-12-28T06:12:15.353Z","updated_at":"2025-11-09T03:30:36.349Z","avatar_url":"https://github.com/PRITHIVSAKTHIUR.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nlicense: creativeml-openrail-m\npipeline_tag: text-generation\nlibrary_name: transformers\nlanguage:\n- en\nbase_model:\n- meta-llama/Llama-3.2-3B-Instruct\ntags:\n- codepy\n- safetensors\n- ollama\n- llama-cpp\n- trl\n- deep-think\n- coder\n---\n# **Codepy 3B Deep Think Model File**\n\nThe **Codepy 3B Deep Think Model** is a fine-tuned version of the **meta-llama/Llama-3.2-3B-Instruct** base model, designed for text generation tasks that require deep reasoning, logical structuring, and problem-solving. This model leverages its optimized architecture to provide accurate and contextually relevant outputs for complex queries, making it ideal for applications in education, programming, and creative writing. \n\nWith its robust natural language processing capabilities, **Codepy 3B Deep Think** excels in generating step-by-step solutions, creative content, and logical analyses. Its architecture integrates advanced understanding of both structured and unstructured data, ensuring precise text generation aligned with user inputs. \n\n| **Model Content**                     | **Size**       | **Description**                                 | **Upload Status** |\n|-----------------------------------|----------------|------------------------------------------------|-------------------|\n| `.gitattributes`                  | 1.57 kB        | Git LFS configuration for large files.          | Uploaded          |\n| `README.md`                       | 221 Bytes      | Basic repository information.                   | Updated           |\n| `config.json`                     | 994 Bytes      | Model configuration with architectural details. | Uploaded          |\n| `generation_config.json`          | 248 Bytes      | Default generation parameters.                  | Uploaded          |\n| `pytorch_model-00001-of-00002.bin`| 4.97 GB        | Sharded PyTorch model weights (part 1 of 2).    | Uploaded (LFS)    |\n| `pytorch_model-00002-of-00002.bin`| 1.46 GB        | Sharded PyTorch model weights (part 2 of 2).    | Uploaded (LFS)    |\n| `pytorch_model.bin.index.json`    | 21.2 kB        | Index file mapping model shards.                | Uploaded          |\n| `special_tokens_map.json`         | 477 Bytes      | Maps special tokens to their respective IDs.    | Uploaded          |\n| `tokenizer.json`                  | 17.2 MB        | Full tokenizer vocabulary and merges.           | Uploaded (LFS)    |\n| `tokenizer_config.json`           | 57.5 kB        | Tokenizer configuration details.                | Uploaded          |\n\n| Run with LM Studio       | Details                                                                                       |\n|--------------------------|-----------------------------------------------------------------------------------------------|\n| *Run with LM Studio*   | https://lmstudio.ai/                                                         |\n| *Demo on LM Studio*    | https://drive.google.com/file/d/1CHdfjYrwMnk9ACvS40Abfy3xNXnCubKG/view?usp=sharing |\n| *Codepy-Deepthink-3B-GGUF* | https://huggingface.co/prithivMLmods/Codepy-Deepthink-3B-GGUF |\n\n---\n# **\u003cspan style=\"color:red;\"\u003eSample Deepthink Inference\u003c/span\u003e**\n\n\u003e\u003e\u003e Develop a Python program to generate random passwords that consist of 8 characters. Not applicable\n\n```markdown\n# Random Password Generator\n\nThis Python program generates a random password of a specified length (default: 8 characters) that includes a mix of lowercase letters, uppercase letters, digits, and spaces. The program ensures the generated password meets basic security requirements while maintaining simplicity.\n\n## Features\n- Generates alphanumeric passwords with optional spaces.\n- Ensures at least one lowercase letter, one uppercase letter, one digit, and one space in the password.\n- Shuffles the characters to randomize the order.\n- Includes error handling for invalid input lengths.\n\n## Requirements\n- Python 3.x\n\n## Usage\n1. Clone or download this repository.\n2. Run the script using Python:\n\n   ```bash\n   python password_generator.py\n   ```\n\n3. The script will generate and print an 8-character random password to the console.\n\n## Code\n\n```python\nimport random\n\ndef generate_password(length):\n    \"\"\"\n    Generates a random alphanumeric password of the specified length.\n\n    Ensures that at least one lowercase letter, one uppercase letter,\n    one digit, and one space are included in the password.\n\n    Args:\n        length: The number of characters in the password.\n\n    Returns:\n        A string representing the generated password or None if the input is invalid.\n    \"\"\"\n\n    # Define a set of alphanumeric characters with spaces\n    characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 '\n\n    # Validate the length\n    if length \u003c 1:\n        return None\n\n    # Handle invalid length\n    if length \u003e len(characters):\n        print(\"Invalid password length. It should be less than or equal to\", len(characters))\n        return None\n\n    # Ensure at least one character from each required group\n    required_characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 '\n    if length \u003e 1:\n        password_length_without_requirements = length - 4\n        random_string = ''.join(random.choice(required_characters) for _ in range(password_length_without_requirements))\n\n    # Fill the rest of the password with random characters\n    remaining_chars_needed = length - len(random_string)\n    all_possible_chars = list(characters)\n    if length \u003e 1:\n        random_character = random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ')\n    else:\n        random_character = random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ')\n\n    password = random_string + random_character * remaining_chars_needed\n\n    # Shuffle the password to avoid predictable patterns\n    password_list = list(password)\n    random.shuffle(password_list)\n    password = ''.join(password_list)\n\n    return password\n\n# Example Usage\npassword_length = 8\ngenerated_password = generate_password(password_length)\n\nif generated_password is not None:\n    print(f\"Generated Password: {generated_password}\")\nelse:\n    print(\"Failed to generate a password. Please ensure the length is valid (between 1 and\", len(characters), \").\")\n```\n\n## Example Output\n```\nGenerated Password: g7x 2PqA\n```\n\n## Customization\nTo customize the password length, modify the `password_length` variable in the script.\n\n## Security Notes\n- This implementation uses Python's `random` module, which is suitable for general-purpose randomness. For cryptographically secure passwords, consider using the `secrets` module.\n- The character set includes spaces for additional complexity, but you can modify the `characters` string to include other symbols (e.g., `!@#$%^\u0026*`).\n---\n# **Model Architecture**\n\n Llama 3.2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety.\n\n# **Run with Ollama [ Ollama Run ]**\n\nOllama simplifies running machine learning models. This guide walks you through downloading, installing, and running GGUF models in minutes.\n\n## Table of Contents\n\n- [Download and Install](#download-and-install)\n- [Run GGUF Models](#run-gguf-models)\n- [Running the Model](#running-the-model)\n- [Sample Usage](#sample-usage)\n\n## Download and Install\n\nDownload Ollama from [https://ollama.com/download](https://ollama.com/download) and install it on your Windows or Mac system.\n\n## Run GGUF Models\n\n1. **Create the Model File**  \n   Create a model file, e.g., `metallama`.\n\n2. **Add the Template Command**  \n   Include a `FROM` line in the file to specify the base model:  \n   ```bash\n   FROM Llama-3.2-1B.F16.gguf\n   ```\n\n3. **Create and Patch the Model**  \n   Run the following command:  \n   ```bash\n   ollama create metallama -f ./metallama\n   ```  \n   Verify the model with:  \n   ```bash\n   ollama list\n   ```\n\n## Running the Model\n\nRun your model with:  \n```bash\nollama run metallama\n```\n\n### Sample Usage\n\nInteract with the model:  \n```plaintext\n\u003e\u003e\u003e write a mini passage about space x\nSpace X, the private aerospace company founded by Elon Musk, is revolutionizing the field of space exploration...\n```\n\n---\n\nWith these steps, you can easily run custom models using Ollama. Adjust as needed for your specific use case.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprithivsakthiur%2Fcodepy-deepthink-3b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprithivsakthiur%2Fcodepy-deepthink-3b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprithivsakthiur%2Fcodepy-deepthink-3b/lists"}