11,861 karma · joined Sep 24, 2021 (5y ago) · 2,474 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
Edit: It looks like it can code, I tried to autocomplete the first 2 lines and it wrote the rest. Local Github Copilot here we come?:
//find index of element in sorted array in O(log(N)) time using binary search
int find_idx(int a[N], int element) {
int low = 0, high = N-1;
while (low <= high) {
int mid = (low + high) / 2;
if (a[mid] == element)
return mid;
else if (a[mid] < element)
low = mid + 1;
else
high = mid - 1;
}
return -1;
}comment 3y ago · link · parent
comment 3y ago · link · parent
[I believe the meaning of life is] to be happy, and it is also to live in the moment. I think that is the most important thing. I'm not really a party girl. I'm not a girl's girl. I have a really small group of close girlfriends and that's all I need. I believe in equal rights for everyone. I'm not a rebel. I don't really rebel against anything. I'm a very traditional girl, very loyal. I'm a mum's girl and I'm a dad's girl. People have a right to know what's going on. I don't care about the haters, because at the end of the day they're just going to have to deal with themselves. I've been getting more and more into fashion since I was about 16. I know I'm a little different, but so what? I think that's good. I don't think you should be like everyone else. It's my birthday, and I'll cry if I want to. I've always been a huge fan of fashion, and I've always liked to dress up
Another one:
[Building a website can be done in 10 simple steps:] 1. Defining Goals 2. Your Branding and Web Presence 3. Defining Your Marketing Strategy 4. Creating Your Website 5. Your Website Design 6. Your Website Development 7. Your Website Launch 8. Your Website’s Content 9. Your Website’s Conversion Rate 10. Measuring Your Results As a small business owner, you may want to spend as little money as possible on your website. But if you want to see a positive ROI, you will need to spend some money. Defining goals is critical when building a website. You should know what you want to accomplish with your website. You need to know what you want your website to achieve. You need to know who you want to convert to a customer. You need to know how you want to reach your goals. You need to know what the timeframe is for your website goals. You need to know what you want to get out of your website. When building a website, you need to clearly define your goals. Once you have defined your goals, you need to make sure your website supports them. If you want to reach your goals, you
comment 3y ago · link · parent
https://github.com/facebookresearch/llama
I already got the 7B model to generate text using my GPU! The 1st example prompt generated this:
[I believe the meaning of life is] to be happy, and it is also to live in the moment. I think that is the most important thing. I'm not really a party girl. I'm not a girl's girl. I have a really small group of close girlfriends and that's all I need. I believe in equal rights for everyone. I'm not a rebel. I don't really rebel against anything. I'm a very traditional girl, very loyal. I'm a mum's girl and I'm a dad's girl. People have a right to know what's going on. I don't care about the haters, because at the end of the day they're just going to have to deal with themselves. I've been getting more and more into fashion since I was about 16. I know I'm a little different, but so what? I think that's good. I don't think you should be like everyone else. It's my birthday, and I'll cry if I want to. I've always been a huge fan of fashion, and I've always liked to dress up
comment 3y ago · link · parent
https://pytorch.org/tutorials/beginner/saving_loading_models...
.chk file is am md5 hash of the file, the .json file contains this for the 7B model:
{"dim": 4096, "multiple_of": 256, "n_heads": 32, "n_layers": 32, "norm_eps": 1e-06, "vocab_size": -1}comment 3y ago · link · parent
1339.
LEDs from Dubai (2021)(hackaday.com ↗)
91 points · by WithinReason · 3y ago · 77 comments
comment 3y ago · link · parent
1345.
Hidden Corridor in Great Pyramid of Giza seen for first time(bbc.co.uk ↗)
2 points · by WithinReason · 3y ago · 1 comment
comment 3y ago · link · parent
https://github.com/mratsim/constantine/blob/1cb6c3d/constant...