https://github.com/alan-turing-institute/iydlr
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: alan-turing-institute
- Language: Rust
- Default Branch: main
- Size: 622 KB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 9
- Releases: 0
Metadata Files
README.md
Getting started
- Install Rust! Follow instructions here.
- For vscode users:
- Install the
rust-analyzerextension. - Open User Settings (JSON) with
CMD + SHIFT + Pthe typeOpen User Settings. - Add these settings:
json "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer", "editor.formatOnSave": true, "editor.rulers": [102] },
- Install the
How to use the repo
Making branches and issues
- Create an issue and note the issue number (eg.
5). - Create a branch named
5-mybranch-name.
Create a new Rust Crate in the Rust Workspace (./iydlr/)
cd /path/to/iydlr- Decide if it's a library crate or a binary crate.
- binary crate:
cargo new my-crate-name - library crate:
cargo new my-crate-name --lib
- binary crate:
Interfaces and how to use them
The goal is the create a Rust "thing" (could be a struct or an enum) that
implements the interface. Which looks like this in Rust:
``rust
trait MyInterface {
/// A method that takes a reference toselfand returnsusize`.
fn some_func(&self) -> usize;
}
struct MyStruct { some_field: usize, }
impl MyInterface for MyStruct { fn somefunc(&self) -> usize { // do some special logic *self.somefield + 2 } } ```
You will now be able to find that function implemented on the struct when you
instantiate the struct:
```rust fn demo() -> () { let mystruct = MyStruct { somefield: 4 };
let myresult = &mystruct.some_func();
// my_result will be = 6
}
```
Resources
Rust resources
- The amazing Rust Language Book: better writing than most novels, very clear and helpful.
- Rust by Example: The hand-in-hand example based companion to the Rust Lang Book.
Tokenisation resources
- The spelled-out intro to language modeling: building makemore has a brilliant intro to tokenisation with a tutorial in tokenising the complete works of Shakespear with "character-level" tokenisation.
- Let's build the GPT Tokenizer is another video by Andrej Karpathy with a tutorial on more complex tokenisation approaches.
Autograd resources
- The spelled-out intro to neural networks and backpropagation: building micrograd is a very understanable and powerful approach to automatic differentiation that was a big motivation for this project.
Transformer resources
- Let's build GPT: from scratch, in code, spelled out. really Oscar worthy stuff - throw together by Karpathy in a brief career pause between Tesla and OpenAI.
Owner
- Name: The Alan Turing Institute
- Login: alan-turing-institute
- Kind: organization
- Email: info@turing.ac.uk
- Website: https://turing.ac.uk
- Repositories: 477
- Profile: https://github.com/alan-turing-institute
The UK's national institute for data science and artificial intelligence.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 7
- Total pull requests: 17
- Average time to close issues: N/A
- Average time to close pull requests: 37 minutes
- Total issue authors: 4
- Total pull request authors: 5
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 15
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 7
- Pull requests: 17
- Average time to close issues: N/A
- Average time to close pull requests: 37 minutes
- Issue authors: 4
- Pull request authors: 5
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 15
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- edchapman88 (1)
Pull Request Authors
- mhauru (8)
- sgreenbury (4)
- thobson88 (2)
- edchapman88 (1)
- andrewphilipsmith (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- rand 0.8.5 development
- anyhow 1.0.86