{"id":13606607,"url":"https://github.com/google/objax","last_synced_at":"2025-04-12T08:31:41.242Z","repository":{"id":39602596,"uuid":"288923752","full_name":"google/objax","owner":"google","description":null,"archived":true,"fork":false,"pushed_at":"2024-01-27T00:16:56.000Z","size":3694,"stargazers_count":771,"open_issues_count":51,"forks_count":77,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-08T20:07:41.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2020-08-20T06:20:40.000Z","updated_at":"2025-03-31T20:07:27.000Z","dependencies_parsed_at":"2023-02-09T16:00:54.295Z","dependency_job_id":"35dc540e-f65e-4848-911f-e495f68f6f8b","html_url":"https://github.com/google/objax","commit_stats":{"total_commits":292,"total_committers":30,"mean_commits":9.733333333333333,"dds":0.8595890410958904,"last_synced_commit":"53b391bfa72dc59009c855d01b625049a35f5f1b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fobjax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fobjax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fobjax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fobjax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/objax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247921497,"owners_count":21018605,"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":[],"created_at":"2024-08-01T19:01:10.633Z","updated_at":"2025-04-12T08:31:36.234Z","avatar_url":"https://github.com/google.png","language":"Python","readme":"# Objax\n\n[**Tutorials**](https://objax.readthedocs.io/en/latest/notebooks/Objax_Basics.html)\n| [**Install**](https://objax.readthedocs.io/en/latest/installation_setup.html)\n| [**Documentation**](https://objax.readthedocs.io/en/latest/)\n| [**Philosophy**](https://objax.readthedocs.io/en/latest/index.html#objax-philosophy)\n\nThis is not an officially supported Google product.\n\nObjax is an open source machine learning framework that accelerates research and learning thanks to a\nminimalist object-oriented design and a readable code base.\nIts name comes from the contraction of Object and [JAX](https://github.com/google/jax) -- a popular high-performance\nframework.\nObjax is designed **by researchers for researchers** with a focus on simplicity and understandability.\nIts users should be able to easily read, understand, extend, and modify it to fit their needs.\n\nThis is the developer repository of Objax, there is very little user documentation\nhere, for the full documentation go to [objax.readthedocs.io](https://objax.readthedocs.io/).\n\nYou can find READMEs in the subdirectory of this project, for example:\n\n* [Sample Code](examples/README.md)\n* [Writing documentation](docs/README.md)\n\n\n## User installation guide\n\nYou install Objax using `pip` as follows:\n\n```bash\npip install --upgrade objax\n```\n\nObjax supports GPUs but assumes that you already have some version of CUDA\ninstalled. Here are the extra steps required to install CUDA-enabled jaxlib\n(jaxlib releases require CUDA 11.2 or newer):\n\n```bash\nRELEASE_URL=\"https://storage.googleapis.com/jax-releases/jax_cuda_releases.html\"\nJAX_VERSION=`python3 -c 'import jax; print(jax.__version__)'`\npip uninstall -y jaxlib\npip install -f $RELEASE_URL jax[cuda]==$JAX_VERSION\n```\n\nFor more installation options, see https://github.com/google/jax#pip-installation-gpu-cuda\n\n### Useful environment configurations\n\nHere are a few useful options:\n\n```bash\n# Prevent JAX from taking the whole GPU memory\n# (useful if you want to run several programs on a single GPU)\nexport XLA_PYTHON_CLIENT_PREALLOCATE=false\n```\n\n### Testing your installation\n\nYou can test your installation by running the code below:\n\n```python\nimport jax\nimport objax\n\nprint(f'Number of GPUs {jax.device_count()}')\n\nx = objax.random.normal(shape=(100, 4))\nm = objax.nn.Linear(nin=4, nout=5)\nprint('Matrix product shape', m(x).shape)  # (100, 5)\n\nx = objax.random.normal(shape=(100, 3, 32, 32))\nm = objax.nn.Conv2D(nin=3, nout=4, k=3)\nprint('Conv2D return shape', m(x).shape)  # (100, 4, 32, 32)\n```\n\nTypically if you get errors running this using CUDA, it probably means your\ninstallation of CUDA or CuDNN has issues.\n\n### Runing code examples\n\nClone the code repository:\n\n```bash\ngit clone https://github.com/google/objax.git\ncd objax/examples\n```\n\n### Citing Objax\n\nTo cite this repository:\n\n```\n@software{objax2020github,\n  author = {{Objax Developers}},\n  title = {{Objax}},\n  url = {https://github.com/google/objax},\n  version = {1.2.0},\n  year = {2020},\n}\n```\n\n## Developer documentation\n\nHere is information about\n[development setup](https://objax.readthedocs.io/en/latest/dev/setup.html)\nand a [guide on adding new code](https://objax.readthedocs.io/en/latest/dev/adding_module.html).\n","funding_links":[],"categories":["机器学习框架","A01_机器学习教程","Libraries"],"sub_categories":["Inactive Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fobjax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fobjax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fobjax/lists"}