Skip to content

Commit

Permalink
Added accelerating phi 2 blog.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavD committed Feb 26, 2024
1 parent 19afa76 commit 351a0d0
Show file tree
Hide file tree
Showing 31 changed files with 220 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"type": "module",
"dependencies": {
"animejs": "^3.2.1",
"mdsvex-relative-images": "^1.0.3",
"saos": "^1.3.1",
"svelte-icons": "^2.1.0",
"sveltejs-adapter-ipfs": "^0.4.12",
Expand Down
194 changes: 194 additions & 0 deletions src/routes/blogs/accelerating-phi-2/+page.svx

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/routes/blogs/accelerating-phi-2/SDXL.jpg
5 changes: 4 additions & 1 deletion src/routes/blogs/github-markdown-light.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ul {
list-style: circle !important;
}
/*light*/

.markdown-body {
Expand Down Expand Up @@ -972,7 +975,6 @@
width: 1em;
height: 1em;
}

.markdown-body .task-list-item {
list-style-type: none;
}
Expand Down Expand Up @@ -1080,3 +1082,4 @@
.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
color: #d1242f;
}

21 changes: 17 additions & 4 deletions src/routes/blogs/post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Header from '../components/header.svelte';
import Footer from '../components/footer.svelte';
import './github-markdown-light.css'
import { onMount } from 'svelte';
/**
* @type {any}
*/
Expand Down Expand Up @@ -42,6 +43,18 @@
* @type {any}
*/
export let robots;
/**
* @type {any}
*/
let imgSrc;
async function loadImage() {
const { default: img } = await import(`./${image}.png`);
imgSrc = img;
}
loadImage();
</script>

<svelte:head>
Expand All @@ -50,16 +63,16 @@
<meta name="keywords" content={keywords} />
<meta name="author" content={authors.join(', ')} />
<meta name="date" content={date} />
<meta name="image" content={image} />
<meta name="image" content={imgSrc ? imgSrc : image} />
<meta name="og:title" content={title} />
<meta name="og:description" content={description} />
<meta name="og:type" content="article" />
<meta name="og:url" content={url} />
<meta name="og:image" content={image} />
<meta name="og:image" content={imgSrc ? imgSrc : image} />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:card" content={image} />
<meta name="twitter:image" content={image} />
<meta name="twitter:card" content={imgSrc ? imgSrc : image} />
<meta name="twitter:image" content={imgSrc ? imgSrc : image} />

<meta name="robots" content={robots} />
</svelte:head>
Expand Down
5 changes: 4 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { mdsvex } from 'mdsvex';
import relativeImages from "mdsvex-relative-images";


/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand All @@ -13,7 +15,8 @@ const config = {
extensions: ['.md', '.svx'],
layout: {
blogs: 'src/routes/blogs/post.svelte'
}
},
remarkPlugins: [relativeImages],
})
],

Expand Down

0 comments on commit 351a0d0

Please sign in to comment.