We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notebook https://github.com/huseinzol05/malaysian-dataset/blob/master/prepare-llm/calculate-size.ipynb,
from bs4 import BeautifulSoup import requests import re import json r = requests.get('https://github.com/users/huseinzol05/projects/1/views/1') soup = BeautifulSoup(r.content, "lxml") data = json.loads(soup.find('script', {'id': 'memex-items-data'}).contents[0]) len(data) parsed = [] for d in data: t = d['memexProjectColumnValues'][0]['value']['title']['raw'] if '(' in t and ')' in t: parsed.append(t) sizes = [] units = { 'MB': 1e6, 'GB': 1e9, 'KB': 1e4, } for string in parsed: for r in re.finditer(r'\([^()]*\)', string): span = r.span() subs = string[span[0] + 1: span[1] - 1] s, unit = subs.split() sizes.append(float(s) * units[unit]) sum(sizes) / 1e9
The text was updated successfully, but these errors were encountered:
Currently 89.27078 GB.
Sorry, something went wrong.
Currently 97.054874 GB.
97.751634, freezing dataset to train LLM.
No branches or pull requests
Notebook https://github.com/huseinzol05/malaysian-dataset/blob/master/prepare-llm/calculate-size.ipynb,
The text was updated successfully, but these errors were encountered: